-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Description
I'm trying to migrate from jaxb2 to jaxb4. The CamelCase Always plugin used to work pretty well.
Now in jaxb4, com.sun.xml.bind.api.impl.NameConverter has been updated to org.glassfish.jaxb.core.api.impl.NameConverter so the plugin fails.
Any chance you could suggest a workaround - a plugin doing the same end result? Or do you plan to update the CamelCase Always plugin?
Example:
<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.XSD.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>From: https://stackoverflow.com/questions/8916398/how-can-i-get-jaxb2-to-emit-camelcase-bindings
Sources are here: https://repo1.maven.org/maven2/org/andromda/thirdparty/jaxb2_commons/camelcase-always/1.0/
laurentschoelens
Metadata
Metadata
Assignees
Labels
xjc-pluginsIssue concerns basics pluginsIssue concerns basics plugins