The maven war plugin will be use to generate a WAR file,and also we can provide our web server path where this war file to deploy.
<properties>
<my.tomcat.path>C:\softwares\Tomcat\apache-tomcat-7.0.27\webapps</my.tomcat.path>
</properties>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin-version}</version>
<configuration>
<outputDirectory>${my.tomcat.path}</outputDirectory>
</configuration>
</plugin>
<properties>
<my.tomcat.path>C:\softwares\Tomcat\apache-tomcat-7.0.27\webapps</my.tomcat.path>
</properties>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin-version}</version>
<configuration>
<outputDirectory>${my.tomcat.path}</outputDirectory>
</configuration>
</plugin>
Comments