在带有货物的tomcat上远程部署失败,超时
在使用cargo-maven2-plugin(1.0.6)进行远程部署时,我遇到了一个问题。我正在部署的战争规模相当大,默认的20秒不足以完成完整部署。 实际异常为(20秒后): 我的货物配置如下:在带有货物的tomcat上远程部署失败,超时,tomcat,deployment,maven,timeout,maven-cargo,Tomcat,Deployment,Maven,Timeout,Maven Cargo,在使用cargo-maven2-plugin(1.0.6)进行远程部署时,我遇到了一个问题。我正在部署的战争规模相当大,默认的20秒不足以完成完整部署。 实际异常为(20秒后): 我的货物配置如下: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.6</ver
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0.6</version>
<configuration>
<wait>true</wait>
<container>
<containerId>tomcat7x</containerId>
<type>remote</type>
<timeout>600000</timeout>
</container>
<configuration>
<type>runtime</type> <!-- or remote -->
<properties>
<cargo.tomcat.manager.url>http://...:8080/manager/text</cargo.tomcat.manager.url>
<cargo.remote.username>...</cargo.remote.username>
<cargo.remote.password>...</cargo.remote.password>
<cargo.hostname>...</cargo.hostname>
<cargo.servlet.port>8080</cargo.servlet.port>
</properties>
</configuration>
<deployer>
<type>remote</type> <!-- or installed -->
<deployables>
<deployable>
<groupId>...</groupId>
<artifactId>...</artifactId>
<type>war</type>
<properties>
<context>...</context>
</properties>
<pingURL>http://www.myProject.com:8080/</pingURL>
<pingTimeout>25000</pingTimeout>
</deployable>
</deployables>
</deployer>
</configuration>
<executions></executions>
</plugin>
org.codehaus.cargo
cargo-maven2-plugin
1.0.6
符合事实的
tomcat7x
遥远的
600000
运行时
http://...:8080/manager/text
...
...
...
8080
遥远的
...
...
战争
...
http://www.myProject.com:8080/
25000
这似乎不是一个问题。最有可能的情况是,它无法在指定的主机和端口连接到tomcat。这似乎不是一个问题。最有可能的情况是,它无法在指定的主机和端口连接到tomcat。您找到问题所在了吗?就连我也犯了同样的错误。你已经将设置为600秒,但我认为这只适用于本地容器。ping超时设置为25秒-您确定部署在20秒后停止吗?你有没有试着提出那个参数?你找到问题所在了吗?就连我也犯了同样的错误。你已经将设置为600秒,但我认为这只适用于本地容器。ping超时设置为25秒-您确定部署在20秒后停止吗?你试过提高这个参数吗?
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0.6</version>
<configuration>
<wait>true</wait>
<container>
<containerId>tomcat7x</containerId>
<type>remote</type>
<timeout>600000</timeout>
</container>
<configuration>
<type>runtime</type> <!-- or remote -->
<properties>
<cargo.tomcat.manager.url>http://...:8080/manager/text</cargo.tomcat.manager.url>
<cargo.remote.username>...</cargo.remote.username>
<cargo.remote.password>...</cargo.remote.password>
<cargo.hostname>...</cargo.hostname>
<cargo.servlet.port>8080</cargo.servlet.port>
</properties>
</configuration>
<deployer>
<type>remote</type> <!-- or installed -->
<deployables>
<deployable>
<groupId>...</groupId>
<artifactId>...</artifactId>
<type>war</type>
<properties>
<context>...</context>
</properties>
<pingURL>http://www.myProject.com:8080/</pingURL>
<pingTimeout>25000</pingTimeout>
</deployable>
</deployables>
</deployer>
</configuration>
<executions></executions>
</plugin>