我正在尝试在代码中替换此插件,而不影响..有人可以帮助我吗。我想将应用程序从weblogic迁移到websphere服务器,我试图将comlogic类替换为com.ibm.websphere。 ant.tasks.WSDL2Java,但它对我也不起作用。
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>wsdlc</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<property name="build.compiler" value="extJavac" />
<property name="my_classpath" refid="maven.compile.classpath" />
<taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask"
classpathref="maven.compile.classpath" />
<wsdlc
srcWsdl="http://tvgusoa/repository/content/TrygVestaServices/service/business/security/v4/Security.wsdl"
destJwsDir="target/generated-sources/wsdlc" destImplDir="target/wsdlc/output/impl"
packageName="dk.trygvesta.soaguard.service"/>
<unzip src="target/generated-sources/wsdlc/Security_wsdl.jar"
dest="target/generated-sources/extractedstubs" />
</tasks>
</configuration>
</execution>
<execution>
<id>jwsc</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<property name="build.compiler" value="extJavac" />
<property name="my_classpath" refid="maven.compile.classpath" />
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask"
com.ibm.websphere.ant.tasks.JwscTask
classpathref="maven.compile.classpath" />
-->
<jwsc srcdir="${basedir}/src/main/wsdlcsrc" destdir="${project.build.directory}"
debug="on" classpathref="maven.compile.classpath" >
<!-- hvis man compiler via java src i stedet for jar, saa laver
den java: namespace -->
<jws compiledWsdl="target/generated-sources/wsdlc/Security_wsdl.jar"
file="dk\trygvesta\soaguard\service\SecurityImpl.java" name="${project.artifactId}-${project.version}"
explode="true" />
</jwsc>
</tasks>
</configuration>
</execution>
</executions>
</plugin>