2015-02-10 59 views
6

我嘗試部署使用貨物插件我的條目爲tomcat8戰爭:貨物無法部署到遠程Tomcat的8用貨物Maven的插件

<plugins> 
     <plugin> 
     <groupId>org.codehaus.cargo</groupId> 
     <artifactId>cargo-maven2-plugin</artifactId> 
     <version>1.4.8</version> 
     <configuration> 
      <container> 
      <containerId>tomcat8x</containerId> 
      <type>remote</type> 
      </container> 
      <configuration> 
      <type>runtime</type> 
      <properties> 
       <cargo.remote.username>tomcat</cargo.remote.username> 
       <cargo.remote.password>s3cret</cargo.remote.password> 
       <cargo.tomcat.manager.url>http://localhost:1234/manager/text</cargo.tomcat.manager.url> 
      </properties> 
      </configuration> 
      <deployables> 
      <deployable> 
       <groupId>${project.groupId}</groupId> 
       <artifactId>${project.artifactId}</artifactId> 
       <type>war</type> 
       <properties> 
       <context>/auditAPP</context> 
       </properties> 
      </deployable> 
      </deployables> 
     </configuration> 
     </plugin> 
    </plugins> 

當我試圖運行此使用MVN貨:部署它給我下面的錯誤

未能執行目標org.codehaus.cargo:貨物maven2的-插件:1.4.8:部署項目Audit_Management_DS(默認CLI):執行的目標默認CLI org.codehaus.cargo:cargo-maven2-plugin:1.4.8:部署失敗:無法創建配置。沒有註冊的參數配置(container [id = [tomcat8x],type = [remote]],配置類型[runtime])。實際上,沒有爲此配置註冊的有效類型。也許你拼錯了嗎? - > [Help 1]

+0

我與cargo-maven2-plugin 1.4.16有同樣的問題。 – Cleankod 2015-09-16 13:23:03

回答

2

更新到cargo-plugin版本1.4.13爲我解決了這個錯誤信息。