FC-255 - [FORTRESS-WEB] Add -version to .war name
diff --git a/pom.xml b/pom.xml
index a08b88b..e8983e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -282,7 +282,7 @@
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<configuration>
- <warFile>target/${project.artifactId}.war</warFile>
+ <warFile>target/${project.artifactId}-${version}.war</warFile>
<server>local-tomcat</server>
<url>http://localhost:8080/manager/text</url>
<path>/${project.artifactId}</path>
@@ -307,9 +307,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
- <!-- this is needed to pickup the context.xml in META-INF: -->
<configuration>
- <warName>${project.artifactId}</warName>
+ <warName>${project.artifactId}-${version}</warName>
<archive>
<manifest>
<classpathPrefix>lib/</classpathPrefix>
@@ -322,7 +321,6 @@
</directory>
</resource>
</webResources>
- <!--<archiveClasses>true</archiveClasses>-->
<attachClasses>true</attachClasses>
</configuration>
</plugin>