尝试使用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(默认)项目AccountInqWeb:目标执行默认值org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc failed :执行org.codehaus.mojo时缺少必需的类:weblogic-maven-plugin:2.9.1:jwsc:weblogic / diagnostics / debug / DebugLogger
realm = plugin> org.codehaus.mojo:weblogic-maven-plugin:2.9.1 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls [0] = file:/ C:/Users/darshanp/.m2/ repository / org / codehaus / mojo / weblogic-maven-plugin / 2.9.1 / weblogic-maven-plugin-2.9.1.jar urls [1] = file:/ C:/Users/darshanp/.m2/repository/org /codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar urls [2] = file:/ C:/Users/darshanp/.m2/repository/ant/ant/1.6.5/ ant-1.6.5.jar urls [3] = file:/ C:/Users/darshanp/.m2/repository/weblogic/weblogic/10.3/weblogic-10.3.jar urls [4] = file:/ C:/ Users /darshanp/.m2/repository/weblogic/webservices/10.3/webservices-10.3.jar外国进口数量:1个进口:条目[从领域导入ClassRealm [maven.api,parent:null]]
-------------------------------------------------- ---:weblogic.diagnostics.debug.DebugLogger - > [帮助1]
1 回答
首先,您必须输入代码作为您在那里的依赖 . 但是你必须注意到一个重大的错误,在这种情况下,依赖于weblogic的版本,org.codehaus.mojo的10到12c不能用于weblogic部署 . 为此你必须通过cmd / terminal直到你的“ wlserver_12.1 \ server \ lib ”并执行seguinto命令:
此插件具有所有设置,因此您可以使用Weblogic 100%
第二,如果这不起作用并且您在IDE中,netbeans尝试执行以下命令,右键单击依赖项并在执行后执行Download Declared Dependency .