【发布时间】:2015-09-23 21:45:57
【问题描述】:
我使用mvn compile 并且我有一个使用 jaxws-maven-plugin 来创建客户端类的 pom,它可以正常工作。我将所有课程都放在target>generated-sources>wsimport> 路径中。但是这些类没有被添加到我的类路径中。所以我的项目没有编译。
pom.xml 中的插件
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<wsdlDirectory>${basedir}/src/main/resources/wsdl</wsdlDirectory>
<packageName>org.tempuri</packageName>
<vmArgs>
<vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
</vmArgs>
<!-- needs extension true otherwise wont generate trade web service stub. Still shows error SOAP binding 1.2 -->
<extension>true</extension>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
【问题讨论】: