-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make code generation part of Maven lifecycle #257
Comments
Seems like a sane proposal. Not sure if we hacked the generated code or not. =( That might have to be factored into this. |
I got a ways towards un-hacking the generated code a while back. I'll see if I can find it. |
I had a look at this and the following configuration in
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemas>
<schema>
<fileset>
<directory>${basedir}</directory>
<includes>
<include>webdav.xsd</include>
</includes>
</fileset>
</schema>
</schemas>
<generatePackage>com.github.sardine.model</generatePackage>
<strict>false</strict>
</configuration>
</execution>
</executions>
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a proposal:
You can make use of several maven plugins to eliminate the need of executing the
generate.sh
prior to the actual Maven build.There are several plugins out there:
maven-jaxb2-plugin:generate
- https://github.com/highsource/maven-jaxb2-plugin (corresponds to your existingxjc
invocation)jaxws:wsimport
- https://jax-ws-commons.java.net/jaxws-maven-plugin/wsimport-mojo.html (does even a bit more SOAPy stuff)After generation, you would tell Maven to respect the sources from the generated directory via the
build-helper-maven-plugin
- http://www.mojohaus.org/build-helper-maven-plugin/usage.htmlThe text was updated successfully, but these errors were encountered: