尝试使用weblogi-maven-plugin执行jwsc任务,获得以下错误
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jwsc</goal>
</goals>
<configuration>
<contextPath>${basedir}/AccountInqWeb</contextPath>
<weblogicHome>C:/u001/isuser/tesbea</weblogicHome>
</configuration>
</execution>
</executions>
</plugin>未能在项目org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc (默认)上执行目标org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc:目标AccountInqWeb的执行默认失败:在执行org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc:weblogic/debug/DebugLogger时缺少必需的类
领域= plugin>org.codehaus.mojo:weblogic-maven-plugin:2.9.1策略= org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls = file:/C:/Users/darshanp/.m2/repository/org/codehaus/mojo/weblogic-maven-plugin/2.9.1/weblogic-maven-plugin-2.9.1.jar urls1 = file:/C:/Users/darshanp/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar urls2 = file:/C:/Users/darshanp/.m2/repository/weblogic/weblogic/10.3/weblogic-10.3.jar urls3 =file:/C:/Users/darshanp/.m2/repository/weblogic/weblogic/10.3/weblogic-10.3.jar urls4 = file:/C:/Users/darshanp/.m2/repository/weblogic/webservices/10.3/webservices-10.3.jar foreign of foreign imports: 1 import: Entry[import from领域ClassRealmmaven.api,家长: null]
-----------------------------------------------------:weblogic.diagnostics.debug.DebugLogger -> Help 1
发布于 2012-11-23 15:05:27
首先,您必须输入代码作为您在那里的依赖项。但是有一个重大的错误,您一定没有注意到,weblogic的dependedo版本--在这种情况下,10到12c到org.codehaus.mojo --在weblogic部署中是做不到的。为此,您必须按cmd /终端执行"wlserver_12.1 \ server \ lib“并执行seguinto命令:
-java-jar-profile wljarbuilder.jar weblogic-maven-plugin
此插件具有所有设置,因此您可以100%使用Weblogic
第二,如果这不起作用,并且您在IDE netbeans中尝试执行以下命令,右键单击依赖项,并在doings下载声明的依赖项之后。
https://stackoverflow.com/questions/9710726
复制相似问题