2011-06-22 9 views
4

cargo-mavenプラグインを使用してリモートtomcat 7サーバーをビルドして再デプロイしようとしています。リモートサーバーに正常に展開できましたが、他のすべての操作は失敗します。ここでcargo-maven-pluginを使用してリモートTomcat 7に再デプロイできません

は、これは私が展開しようとしたとき、私は、Eclipse内見ていますとエラーになり私のpom.xmlでpluging設定

 <plugin> 
      <groupId>org.codehaus.cargo</groupId> 
      <artifactId>cargo-maven2-plugin</artifactId> 
      <version>1.1.1</version> 
      <configuration> 
       <!-- Container configuration --> 
       <container> 
        <containerId>tomcat7x</containerId> 
        <type>remote</type> 
       </container> 
       <configuration> 
        <type>runtime</type> 
        <properties> 
         <cargo.remote.username>tomcat</cargo.remote.username> 
         <cargo.remote.password>tomcat</cargo.remote.password> 
         <cargo.remote.uri>http://devserver:8080/manager/html</cargo.remote.uri> 
        </properties> 
       </configuration> 
      </configuration>     
     </plugin> 

です。私はpastebinに投稿して読みやすくしました。 Error link。これに関する助けがあれば大歓迎です。

答えて

10

これに対する回答を知りたい方に。見てくださいfor a caveat with tomcat 7.

あなたはこのようなものを使用することができます。

<plugin> 
      <groupId>org.codehaus.cargo</groupId> 
      <artifactId>cargo-maven2-plugin</artifactId> 
      <version>1.1.1</version> 
      <configuration> 
       <container> 
        <containerId>tomcat7x</containerId> 
        <type>remote</type> 
       </container> 
       <configuration> 
        <type>runtime</type> 
        <properties> 
         <cargo.remote.username>devuser</cargo.remote.username> 
         <cargo.remote.password>86gphpphp</cargo.remote.password> 
         <cargo.remote.uri>http://192.168.2.116:8080/manager/text</cargo.remote.uri> 
        </properties> 
        <deployables> 
         <deployable> 
          <groupId>com.fiobox</groupId> 
          <artifactId>fiobox</artifactId> 
          <type>war</type> 
         </deployable> 
        </deployables> 
       </configuration> 
      </configuration> 
     </plugin> 
関連する問題