[New] added plugin configuration to deploy to tomcat7
This commit is contained in:
parent
9eab28411a
commit
03eb1d304d
14
pom.xml
14
pom.xml
|
@ -12,6 +12,8 @@
|
|||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<warFinalName>tutorialwebapp</warFinalName>
|
||||
<tomcat7ServerId>tomcat7.eitchnet.ch</tomcat7ServerId>
|
||||
<tomcat7Url>http://appsrv:8080/manager/text</tomcat7Url>
|
||||
<m2eclipse.wtp.contextRoot>${warFinalName}</m2eclipse.wtp.contextRoot>
|
||||
</properties>
|
||||
|
||||
|
@ -64,8 +66,8 @@
|
|||
|
||||
<build>
|
||||
<finalName>${warFinalName}</finalName>
|
||||
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
|
@ -74,6 +76,16 @@
|
|||
<warName>${warFinalName}</warName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Publish to Tomcat7: mvn tomcat7:redeploy -->
|
||||
<groupId>org.apache.tomcat.maven</groupId>
|
||||
<artifactId>tomcat7-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<url>${tomcat7Url}</url>
|
||||
<server>${tomcat7ServerId}</server>
|
||||
<path>/${warFinalName}</path>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
Loading…
Reference in New Issue