Maven 2 使用maven antrun插件的jwsc任务
尝试使用maven antrun插件执行jwsc任务Maven 2 使用maven antrun插件的jwsc任务,maven-2,maven-plugin,maven-3,weblogic-10.x,maven-ant-tasks,Maven 2,Maven Plugin,Maven 3,Weblogic 10.x,Maven Ant Tasks,尝试使用maven antrun插件执行jwsc任务 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version>
<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>
org.apache.maven.plugins
maven antrun插件
1.7
编译
跑
com.sun
工具
1.6
系统
${java.home}/./lib/tools.jar
发生Ant构建异常:java.lang.NoClassDefFoundError:com/sun/javadoc/Type
Ant part
确保使用JDK_1.5 tools.jar 1.6版本中存在错误
@快速启动MAVEN2
:runm2
%MAVEN\u JAVA\u EXE%%MAVEN\u OPTS%-类路径C:\u001\isuser\tesbea\jdk160\u 05\jre\lib\tools.jar;%CLASSWORLDS\u JAR%“-Dclassworlds.conf=%M2\u HOME%\bin\M2.conf”“-Dmaven.HOME=%M2\u HOME%”org.codehaus.CLASSWORLDS.Launcher%MAVEN\u CMD\u LINE\u ARGS%
如果错误级别1转到错误
转到终点