maven cargo 自动部署配置

3 篇文章 0 订阅
<!-- 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>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值