xsd - Unsupported binding namespace exception for vendor specific namespace -


i have vendor.xsd, namespace definition referencing vendor specific namespace http://vendor.com/xjc-plugins. snippet given below:

... <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"  xmlns:common="http://annox.dev.java.net"  xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:vendor="http://vendor.com/xjc-plugins" elementformdefault="qualified"  jaxb:extensionbindingprefixes="vendor common"  jaxb:version="2.0">  ... xs:complextype name="vendortype">     <xs:annotation>         <xs:appinfo>             <vendor:package>vendor.package</vendor:package>         </xs:appinfo>     </xs:annotation> ... 

when try generate jaxbs using either xjc command line or maven-jaxb22-plugin following exception occurs:

unsupported binding namespace "http://vendor.com/xjc-plugins". perhaps meant "http://annox.dev.java.net"? 

the maven plugin using given here:

      <plugin>     <groupid>org.jvnet.jaxb2.maven2</groupid>     <artifactid>maven-jaxb22-plugin</artifactid>     <version>0.13.1</version>     <executions>       <execution>         <goals>           <goal>generate</goal>         </goals>         <configuration>           <schemadirectory>src/main/resources</schemadirectory>           <schemaincludes>             <include>vendor.xsd</include>           </schemaincludes>           <generatepackage>com.vendor.model</generatepackage>           <extension>true</extension>           <args>             <arg>-xannotate</arg>           </args>           <plugins>             <plugin>               <groupid>org.jvnet.jaxb2_commons</groupid>               <artifactid>jaxb2-basics-annotate</artifactid>               <version>1.0.2</version>             </plugin>             <plugin>               <groupid>org.jvnet.jaxb2_commons</groupid>               <artifactid>jaxb2-basics</artifactid>               <version>1.11.1</version>             </plugin>             <plugin>               <groupid>org.jvnet.jaxb2_commons</groupid>               <artifactid>jaxb2-basics-tools</artifactid>               <version>1.11.1</version>             </plugin>           </plugins>         </configuration>       </execution>     </executions>   </plugin> 

any ideas welcome ?

you not seem include xjc plugin in plugins section of maven-jaxb2-plugin configuration. binding namespace must acknowledged plugin. include jaxb2-basics not plugin acknowledge http://vendor.com/xjc-plugins.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -