[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>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<warFinalName>tutorialwebapp</warFinalName>
|
<warFinalName>tutorialwebapp</warFinalName>
|
||||||
|
<tomcat7ServerId>tomcat7.eitchnet.ch</tomcat7ServerId>
|
||||||
|
<tomcat7Url>http://appsrv:8080/manager/text</tomcat7Url>
|
||||||
<m2eclipse.wtp.contextRoot>${warFinalName}</m2eclipse.wtp.contextRoot>
|
<m2eclipse.wtp.contextRoot>${warFinalName}</m2eclipse.wtp.contextRoot>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -64,8 +66,8 @@
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${warFinalName}</finalName>
|
<finalName>${warFinalName}</finalName>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
|
@ -74,6 +76,16 @@
|
||||||
<warName>${warFinalName}</warName>
|
<warName>${warFinalName}</warName>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue