<!-- cargo 自动化部署 -->
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0</version>
<!-- 本地部署
<configuration>
<container>
<containerId>tomcat6x</containerId>
<home>E:/liuyan/java/test/apache-tomcat-6.0.35</home>
</container>
<configuration>
<type>standalone</type>
<home>${project.build.directory}/tomcat6x</home>
<properties>
<cargo.servlet.port>8080</cargo.servlet.port>
</properties>
<deployables>
<deployable>
<groupId>testServer</groupId>
<artifactId>testServer</artifactId>
<type>war</type>
<properties>
<context>testServer</context>
</properties>
</deployable>
</deployables>
</configuration>
</configuration>
-->
<configuration>
<container>
<containerId>tomcat6x</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.tomcat.manager.url>http://10.10.118.149:8080/manager</cargo.tomcat.manager.url>
</properties>
</configuration>
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>testServer</groupId>
<artifactId>testServer</artifactId>
<type>war</type>
<properties>
<context>testServer</context>
</properties>
<!-- <pingURL>http://10.10.118.149:8080/testServer</pingURL>
<pingTimeout>30000</pingTimeout> -->
</deployable>
</deployables>
</deployer>
</configuration>
</plugin>
maven cargo 自动部署配置
最新推荐文章于 2024-10-06 18:44:59 发布