首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

maven封装war配置

2012-07-25 
maven打包war配置buildfinalNamespringmvc/finalNamepluginsplugingroupIdorg.codehaus.cargo

maven打包war配置

<build><finalName>springmvc</finalName><plugins><plugin><groupId>org.codehaus.cargo</groupId><artifactId>cargo-maven2-plugin</artifactId><version>1.1.1</version><configuration><container><containerId>tomcat6x</containerId><type>installed</type><home>${deploy.tomcat.home}</home></container><configuration><type>existing</type><home>${deploy.tomcat.home}</home></configuration><deployer><type>installed</type><deployables><deployable><groupId>${project.groupId}</groupId><artifactId>${project.artifactId}</artifactId><type>war</type><properties><context>${build.finalName}</context></properties></deployable></deployables></deployer></configuration><executions><execution><id>pre-undeploy</id><phase>pre-clean</phase><goals><goal>deployer-undeploy</goal></goals></execution><execution><id>verify-deploy</id><phase>install</phase><goals><goal>deployer-deploy</goal></goals></execution></executions></plugin></plugins></build>

热点排行