设置-轴2-wsdl2code-maven-plugin中的Eosv属性



我使用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插件中可能吗?是否还有其他一些属性可以用来降低验证的严格性?

谢谢!

在查找类似问题后,我发现您可以添加:

<options>
    <osv>true</osv>
</options>

我不确定它是否真的有效,因为它没有解决我的问题(客户端上无法识别的元素除外),但如果有人在挣扎,请尝试并添加您的反馈。

在此处找到此:如何使用axis2-wsdl2code-maven-plugin设置-Euwc参数?

最新更新