用maven-jaxb2-plugin 插件去生成客户端,配置多个schema的话就会出现对象重复生成报错的问题,有没有遇到的
配置如下:
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>com.zhuzher.client</generatePackage>
<generateDirectory>${basedir}/src/main/java/</generateDirectory>
<forceRegenerate>false</forceRegenerate>
<removeOldOutput>false</removeOldOutput>
<strict>true</strict>
<verbose>true</verbose>
<readOnly>true</readOnly>
<episode>true</episode>
<schemas>
<schema>
<url>http://58.83.157.102:8000/kws_train/SecurityService.asmx?wsdl</url>
</schema>
<schema>
<url>http://58.83.157.102:8000/kws_train/AvailabilityService.asmx?wsdl</url>
</schema>
<schema>
<url>http://58.83.157.102:8000/kws_train/ReservationService.asmx?wsdl</url>
</schema>
<schema>
<url>http://58.83.157.102:8000/kws_train/ProfileService.asmx?wsdl</url>
</schema>
<schema>
<url>http://58.83.157.102:8000/kws_train/InformationService.asmx?wsdl</url>
</schema>
</schemas>
</configuration>
</plugin>
问题已经解决
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。