4

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

これが私のpom.xmlのプラグ設定です

        <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>

これは、デプロイしようとしたときに Eclipse 内で表示されるエラーです。読みやすいようにペーストビンに投稿しました。エラーリンク。これに関するヘルプは大歓迎です。

4

1 に答える 1

10

これに対する答えを知りたい人のために。tomcat7の警告を見てください。

このようなものを使用できます。

<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>
于 2011-06-29T16:28:04.423 に答える