I was using maven's tomcat plugin for deploying my web application to tomcat server. now i need the same war file in a different location(not directly deploy to tomcat server.). So that i can manually copy my war file to another machine's and deploy it.
My current pom.xml configuration is
<profiles>
<profile>
<id>staging</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://localhost:8080/manager/text</url>
<server>mytomcat</server>
<path>/project1</path>
<username>xxxxxxx</username>
<password>xxxxxxxx</password>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>