尝试使用 maven antrun 插件执行 jwsc 任务
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="webservice.build">
<path id="weblogic.jar.classpath">
<path location="${weblogic.home}/server/lib/weblogic.jar"/>
</path>
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" classpathref="weblogic.jar.classpath" >
<classpath>
<path refid="weblogic.jar.classpath" />
</classpath>
</taskdef>
<jwsc destdir="target">
<module name="AccountInqWeb" explode="true" contextPath="AccountInqWeb">
<jwsFileSet srcdir="src/com/services/accountinquiry/ws">
<include name="**/*.java"/>
</jwsFileSet>
<descriptor file="WebContent/WEB-INF/web.xml"/>
<descriptor file="WebContent/WEB-INF/weblogic.xml"/>
</module>
</jwsc>
</target>
</configuration>
</execution>
</executions>
</plugin>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
发生 Ant BuildException:java.lang.NoClassDefFoundError: com/sun/javadoc/Type Ant part ...<jwsc destdir="target">...
@ 12:26 in C:\Default\soaservices\workspace\AccountInqWeb\target\antrun\build-webservice.build.xml