【问题标题】:weblogic-maven-plugin 2.9.1weblogic-maven-插件 2.9.1
【发布时间】:2012-03-31 10:18:30
【问题描述】:

尝试使用 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>

无法在项目 AccountInqWeb 上执行目标 org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc(默认):目标 org.codehaus.mojo:weblogic-maven-plugin:2.9.1 的执行默认:jwsc 失败:执行 org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc: weblogic/diagnostics/debug/DebugLogger 时缺少所需的类


realm = 插件>org.codehaus.mojo:weblogic-maven-plugin:2.9.1 策略 = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = 文件:/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] = 文件:/C:/Users/darshanp/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar urls[3] = 文件:/C:/Users/darshanp/.m2/repository/weblogic/weblogic/10.3/weblogic-10.3.jar urls[4] = 文件:/C:/Users/darshanp/.m2/repository/weblogic/webservices/10.3/webservices-10.3.jar 国外进口数量:1 import: Entry[import from realm ClassRealm[maven.api, parent: null]]]

----------------------------------------------- ------: weblogic.diagnostics.debug.DebugLogger -> [帮助 1]

【问题讨论】:

    标签: java maven-plugin maven-3 weblogic-10.x maven-ant-tasks


    【解决方案1】:

    首先,您必须输入代码作为您在那里的依赖项。但是有一个你一定没有注意到的重大错误,在这种情况下,10 到 12c 到 org.codehaus.mojo 的 weblogic 的dependedo 版本不能用 weblogic 部署。为此,您必须通过 cmd / 终端直到您的 "wlserver_12.1 \ server \ lib" 并执行 seguinto 命令:

    -java-jar-profile wljarbuilder.jar weblogic-maven-plugin

    这个插件有所有的设置,所以你可以使用 Weblogic 100%

    其次,如果这不起作用并且您在 IDE 中,netbeans 尝试执行以下命令,右键单击依赖项,然后下载声明的依赖项。

    【讨论】:

      猜你喜欢
      • 2014-01-31
      • 1970-01-01
      • 2014-06-20
      • 1970-01-01
      • 2014-07-10
      • 1970-01-01
      • 2013-02-25
      • 2012-12-03
      • 1970-01-01
      相关资源
      最近更新 更多