How to deploy a war file in your server with Maven in Eclipse

For to deploy a war file in server with Maven, copy this code in your Pom.xml, save it and redeploy. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0.2</version> <configuration> <outputDirectory> <Path intallation JBoss>serverdefaultdeploy <Path intallation Tomcat>webapps </outputDirectory> </configuration> </plugin> </plugins> </build>