【发布时间】:2015-04-18 15:22:06
【问题描述】:
我正在使用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>
我想让模式验证尽可能不严格。通过一些谷歌搜索,我看到在命令行上您可以将 -Eosv 设置为轴代码生成器的参数。
在maven插件中可以吗? 我可以使用更多属性来降低验证的严格性吗?
谢谢!
【问题讨论】:
标签: java maven soap code-generation axis2