我尝试使用axis2(1.5.1)版本从wsdl文件生成java代码,但我不知道什么是正确的pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<goals>
<goal>wsdl2code</goal>
</goals>
<configuration>
<wsdlFile>src/main/resources/wsdl/stockquote.wsdl</wsdlFile>
<databindingName>xmlbeans</databindingName>
<packageName>a.bc</packageName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2</artifactId>
<version>1.5.1</version>
</dependency>
</dependencies>
当我输入 mvn compile 时,它会抱怨
Retrieving document at 'src/main/resources/wsdl/stockquote.wsdl'.
java.lang.ClassNotFoundException: org.apache.xml.serializer.TreeWalker
如果我试图找到 TreeWalker,找到合适的 jar 文件会很麻烦。
你可以给我一个提示吗?或者给我正确的 pom.xml
[更新] xalan-2.7.0.jar 也需要依赖,jar 文件损坏(由于 nexus 问题),thx pascal