我使用axis2-wsdl2code-maven-pluginin从wsdl生成java源。
我的pom.xml中的插件部分如下所示:
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.6.2</version>
<executions>
<execution>
<id>first wsdl</id>
<goals>
<goal>wsdl2code</goal>
</goals>
<configuration>
<packageName>my.package</packageName>
<databindingName>xmlbeans</databindingName>
<wsdlFile>src/main/resources/ws1.wsdl</wsdlFile>
<generateServerSideInterface>true</generateServerSideInterface>
</configuration>
</execution>
<execution>
<id>second wsdl</id>
<goals>
<goal>wsdl2code</goal>
</goals>
<configuration>
<packageName>my.package</packageName>
<databindingName>xmlbeans</databindingName>
<wsdlFile>src/main/resources/ws2.svc.wsdl</wsdlFile>
<generateServerSideInterface>true</generateServerSideInterface>
</configuration>
</execution>
</executions>
</plugin>我希望使模式验证尽可能地不那么严格。从一些googling中我看到,在命令行中,可以将-Eosv设置为axis代码生成器的参数。
在maven插件中有可能吗?我是否还可以使用更多的属性来减少验证的严格性?
谢谢!
发布于 2015-02-19 07:39:26
在寻找类似的问题后,我发现你可以添加:
<options>
<osv>true</osv>
</options>我不确定它是否真的起了作用,因为它没有解决我的问题(不被识别的元素在客户端上的例外),但是如果有谁正在挣扎,请尝试并添加您的反馈。
在这里找到这个:How to set -Euwc param with axis2-wsdl2code-maven-plugin?
https://stackoverflow.com/questions/28569827
复制相似问题