2012-03-14 42 views
0

嘗試使用weblogi - Maven的插件,讓下面的錯誤WebLogic的Maven的插件2.9.1

<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執行jwsc任務:WebLogic的Maven的插件:2.9。 1:項目上的jwsc(默認)AccountInqWeb:目標執行缺省值org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc失敗:執行org.codehaus.mojo時缺少必需的類:weblogic-maven-插件:2.9.1:的jwsc:的WebLogic /診斷/調試/ DebugLogger


境界=插件> org.codehaus.mojo:WebLogic的行家-插件: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 網址[2] =文件:/ C:/Users/darshanp/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar 網址[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 import:Entry [從領域ClassRealm [maven.api,parent:null]導入]

------------------------------------------------ -----:weblogic.diagnostics.debug.DebugLogger - > [Help 1]

回答

0

首先,您必須輸入代碼作爲您在那裏的依賴關係。但是有一個重大的錯誤,你一定沒有注意到,在這種情況下,依賴於weblogic的版本,org.codehaus.mojo的10到12c無法用於weblogic部署。對於您必須通過CMD /終端去,直到你的 「wlserver_12.1 \服務器\ LIB」 做seguinto命令:

- Java的罐子姿態wljarbuilder.jar WebLogic的Maven的插件

這個插件有所有的設置,所以你可以使用WebLogic 100%

其次,如果不工作,你的IDE NetBeans的是試圖做下面的命令,在依賴右擊後的所作所爲下載聲明的依賴關係。

+0

沒有與12c一起工作。 – mzzzzb 2014-08-28 06:07:59