0

cargoプラグインを使用してサーブレット プロジェクトをデプロイしようとしています。

pom.xml ファイル:

...
<!-- cargo plugin  -->
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <configuration>
            <container>
                <containerId>tomcat6x</containerId>
                <type>remote</type>
                <systemProperties>
                    <cargo.jvmargs>-XX:MaxPermSize=256M -Xmx1024m</cargo.jvmargs>
                </systemProperties>
            </container>
            <configuration>
                <type>runtime</type>
                <properties>
                    <cargo.hostname>example.com</cargo.hostname>
                    <cargo.protocol>http</cargo.protocol>
                    <cargo.servlet.port></cargo.servlet.port>
                    <cargo.remote.username>verticals-renderer</cargo.remote.username>
                    <cargo.remote.password>verticals-renderer</cargo.remote.password>
                </properties>
            </configuration>
                <deployables>
                    <deployable>
                        <groupId>com.foo.foo</groupId>
                        <artifactId>foo-renderer</artifactId>
                        <type>war</type>
                        <properties>
                            <context>latest</context>
                        </properties>
                    </deployable>
                </deployables>

        </configuration>
    </plugin>
    <!-- End cargo plugin -->
...

ご覧のとおり、プロジェクトをリモートにデプロイしたいと考えていdomainます。example.comしかし、実行すると次のようmvn cargo:doployになります。

Connection timed out

これは、プロジェクトを次の場所にデプロイしようとするためです。

http://example.com:/manager

:URL からコロン ( ) を削除するにはどうすればよいですか?

4

1 に答える 1

0

構成プロパティから cargo.servlet.port を削除するとどうなりますか? URL の空のポートが消えると思います。

于 2013-08-19T12:06:20.557 に答える