pom.xml に次のものがあります
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<wait>true</wait>
<container>
<containerId>tomcat7x</containerId>
<type>remote</type>
</container>
<configuration>
<type>remote</type>
<properties>
<cargo.tomcat.manager.url>http://<myhost>:8080/manager</cargo.tomcat.manager.url>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>password</cargo.remote.password>
</properties>
</configuration>
<deployer>
<type>installed</type>
<deployables>
<deployable>
<groupId>com.mycode</groupId>
<artifactId>myartifact</artifactId>
<type>war</type>
</deployable>
</deployables>
</deployer>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deployer-deploy</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>deployer-undeploy</goal>
</goals>
</execution>
<execution>
<id>verify-deploy</id>
<phase>install</phase>
<goals>
<goal>deployer-deploy</goal>
</goals>
</execution>
<execution>
<id>clean-undeploy</id>
<phase>pre-clean</phase>
<goals>
<goal>deployer-undeploy</goal>
</goals>
</execution>
</executions>
</plugin>
この後、コマンドを発行mvn deploy
しますが、以下のエラーが発生します。
[エラー] プロジェクト fismacm でゴール org.codehaus.cargo:cargo-maven2-plugin:1.3.1:deployer-deploy (start-container) を実行できませんでした: ゴール org.codehaus.cargo:cargo-maven2 の start-container を実行します-plugin:1.3.1:deployer-deploy が失敗しました: 構成を作成できません。パラメーターの登録済み構成はありません (コンテナー [id = [tomcat6x]、タイプ = [リモート]]、構成タイプ [リモート])。この構成の有効なタイプは次のとおりです。
http://<myhost>:8080/manager
ブラウザから正常にアクセスできます。私が実行しているTomcatのバージョンは7です。