尝试从我的wsdl生成类时出现以下错误:
无法在项目hblws.test上执行目标org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.12.3:generate(CreateWebServiceAccountV1):目标org.jvnet.jaxb2.maven2的执行CreateWebServiceAccountV1:maven-jaxb2 -plugin:0.12.3:生成失败:无法解析参数号:''http://java.sun.com/xml/ns/jaxb'':对于输入字符串:“''http://java.sun.com/xml/ns/jaxb''” - > [帮助1]
我有一个wsdl文件和多个XSD / XJB。 XJB具有以下命名空间:xmlns =“http://java.sun.com/xml/ns/jaxb”
以下是执行JAXB / XJC生成的pom.xml代码:
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.12.3</version>
<executions>
<!-- CreateWebServiceAccount V1 -->
<execution>
<id>CreateWebServiceAccountV1</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<sourceDestDir>
${project.build.directory}/generated-sources
</sourceDestDir>
<wsdlFiles>
<wsdlFile>CreateWebServiceAccountV1.wsdl</wsdlFile>
</wsdlFiles>
<wsdlDirectory>${basedir}/src/main/webapp/WEB-INF/wsdl/</wsdlDirectory>
<verbose>true</verbose>
<bindingFiles>
<bindingFile>${basedir}/src/main/webapp/META-INF/wsdl/CreateWebServiceAccountV1.xjb</bindingFile>
<bindingFile>${basedir}/src/main/webapp/META-INF/wsdl/CreateWebServiceAccountV1Model.xjb</bindingFile>
<bindingFile>${basedir}/src/main/webapp/META-INF/wsdl/SystemFault-v1.xjb</bindingFile>
</bindingFiles>
<staleFile>${project.build.directory}/jaxws/stale/wsdl.CreateWebServiceAccountV1.done</staleFile>
<schemaDirectory>${basedir}/src/main/webapp/META-INF/wsdl/</schemaDirectory>
</configuration>
</execution>
</executions>
</plugin>
提前感谢您的帮助!