【问题标题】:setting -Eosv property in axis2-wsdl2code-maven-plugin在axis2-wsdl2code-maven-plugin中设置-Eosv属性
【发布时间】: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


    【解决方案1】:

    找了类似的问题,发现可以加:

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

    我不确定它是否真的有效,因为它没有解决我的问题(客户端出现无法识别元素的异常),但如果有人在努力,请试一试并添加您的反馈。

    在这里找到这个: How to set -Euwc param with axis2-wsdl2code-maven-plugin?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-31
      • 2020-08-31
      • 2017-05-07
      • 2012-02-18
      • 1970-01-01
      • 2011-10-09
      • 1970-01-01
      • 2017-06-08
      相关资源
      最近更新 更多