maven插件配置示例

tomcat6插件示例配置,详见[url=http://tomcat.apache.org/maven-plugin-trunk/]官网[/url]
[url=http://blog.csdn.net/binyao02123202/article/details/17793233]Maven 集成Tomcat7插件[/url]
			<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/jyjc</path>
<port>8001</port>
</configuration>
</plugin>

cargo插件示例配置,详见[url=http://cargo.codehaus.org/]官网[/url],可参阅[url=http://381234609.iteye.com/blog/962465]maven cargo[/url]
			<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<container>
<containerId>tomcat6x</containerId><!-- 必须是tomcat6x -->
<home>D:\Tools\apache-tomcat-6.0.37</home>
</container>
<configuration>
<type>standalone</type><!-- 单独运行,不影响已有项目 -->
<home>${project.build.directory}/target/tomcat6</home>
<properties>
<cargo.servlet.port>8001</cargo.servlet.port>
</properties>
</configuration>
<deployables>
<deployable>
<type>war</type>
<properties>
<context>jyjc</context><!-- http://localhost:8001/jyjc -->
</properties>
</deployable>
</deployables>
</configuration>
</plugin>


[url=http://blog.csdn.net/johnnywww/article/details/8032278]maven 通过cargo配置运行到web服务器[/url]

exec-maven-plugin

			<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<configuration>
<mainClass>dump.DumpUtil</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
</configuration>
</plugin>


若出现Couldn't destroy threadgroup错误(如图),设置cleanupDaemonThreads=false可解决
<cleanupDaemonThreads>false</cleanupDaemonThreads>

[img]http://dl2.iteye.com/upload/attachment/0110/0827/e9e98fe7-6795-3670-a03a-9af3471ef594.png[/img]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值