I did not find examples of how to do this using jaxws-maven-plugin , but I found examples using maven-jaxb2-plugin .
First you need to add the repository to your POM:
<repository> <id>releases</id> <name>Releases</name> <url>https://oss.sonatype.org/content/repositories/releases</url> </repository>
Note the plugin declaration and arguments added to the maven-jaxb2-plugin execution.
<plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.8.0</version> <executions> <execution> <id>jaxb-generate</id> <phase>generate-sources</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> <configuration> <generatePackage>YOUR.PACKAGE.HERE</generatePackage> <args> <arg>-camelcase-always</arg> </args> <bindingDirectory>src/main/binding</bindingDirectory> <schemas> <schema> <url>http://YOUR.WSDL.HERE</url> </schema> </schemas> <extension>true</extension> <plugins> <plugin> <groupId>org.andromda.thirdparty.jaxb2_commons</groupId> <artifactId>camelcase-always</artifactId> <version>1.0</version> </plugin> </plugins> </configuration> </plugin>
See docs for more details.
source share