我正在尝试使用cargo插件部署servlet项目。
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中删除冒号(:)吗?
发布于 2013-08-19 20:06:21
如果从配置属性中删除cargo.servlet.port,会发生什么情况?我相信您的URL中的空端口将会消失。
https://stackoverflow.com/questions/18313266
复制相似问题