我完成了从Ant到Maven项目的迁移,我遇到了一些问题,使我无法工作:
${wsdl-ns绑定}变量是http://ws.domain.ru/persistence/ETB/mortgage/wsdl=ru.domain.ws.services.persistence.etb.mortgage.wsdl。
发布于 2012-12-18 14:57:12
尝试这个布局(在wsdlOptions中指定wsdl文件)
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.6.2</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${basedir}/src/main/java</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${wsdl-home}/ETB_MortgagePersistence.wsdl</wsdl>
<extraargs>
<extraarg>-ns2p</extraarg>
<extraarg>http://ws.domain.ru/persistence/ETB/mortgage/wsdl=ru.domain.ws.services.persistence.etb.mortgage.wsdl</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>https://stackoverflow.com/questions/13743445
复制相似问题