I’m trying to get this running: JAXB interface
But I always get the error : Unsupported binding namespace “http://jaxb2-commons.dev.java.net/basic/inheritance”. Perhaps you meant “http://jaxb.dev.java.net/plugin/code-injector”?
Is there some new way to let generated beans implement interfaces?
EDIT: I also get the warning unrecognized parameter -Xinheritance in my POM with cxf version 2.4.0
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-xjc-plugin</artifactId>
<version>2.4.0</version>
<configuration>
<extensions>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-boolean:2.4.0</extension>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-bug671:2.4.0</extension>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:2.4.0</extension>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-ts:2.4.0</extension>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-pl:2.4.0</extension>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-ts:2.4.0</extension>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-wsdlextension:2.4.0</extension>
</extensions>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>xsdtojava</goal>
</goals>
<configuration>
<xsdOptions>
<xsdOption>
<extension>true</extension>
<xsd>some.xsd</xsd>
<packagename>somepackage</packagename>
<bindingFile>src\main\resources\bindings\bindings.xml</bindingFile>
<extensionArgs>
<arg>-Xdv</arg>
<arg>-Xinheritance</arg>
</extensionArgs>
</xsdOption>
</xsdOptions>
</configuration>
</execution>
<execution>
<configuration>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics-runtime</artifactId>
<version>0.6.3</version>
</dependency>
You need to add the jaxb2-basics plugin as a dependency of the CXF plugin. See example 6 here http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html.
e.g add this at the end