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>