directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-enmasse git commit: FC-256 - FORTRESS-REST] Add -version to .war name
Date Mon, 05 Nov 2018 21:51:47 GMT
Repository: directory-fortress-enmasse
Updated Branches:
  refs/heads/master 5185ffb74 -> e5edc636b


FC-256 - FORTRESS-REST] Add -version to .war name


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/commit/e5edc636
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/tree/e5edc636
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/diff/e5edc636

Branch: refs/heads/master
Commit: e5edc636b1a049ec71b75e4011b0aee57fc67cda
Parents: 5185ffb
Author: Shawn McKinney <smckinney@apache.org>
Authored: Mon Nov 5 15:51:41 2018 -0600
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Mon Nov 5 15:51:41 2018 -0600

----------------------------------------------------------------------
 pom.xml | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/blob/e5edc636/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 6484689..ee01862 100755
--- a/pom.xml
+++ b/pom.xml
@@ -288,7 +288,7 @@
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>tomcat-maven-plugin</artifactId>
         <configuration>
-          <warFile>target/${project.artifactId}.war</warFile>
+          <warFile>target/${project.artifactId}-${project.version}.war</warFile>
           <server>local-tomcat</server>
           <url>http://localhost:8080/manager/text</url>
           <path>/${project.artifactId}-${project.version}</path>
@@ -314,6 +314,29 @@
         </configuration>
       </plugin>
 
+      <!-- War the app -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <version>2.4</version>
+        <configuration>
+          <warName>${project.artifactId}-${version}</warName>
+          <archive>
+            <manifest>
+              <classpathPrefix>lib/</classpathPrefix>
+            </manifest>
+          </archive>
+          <webResources>
+            <resource>
+              <!-- this is relative to the pom.xml directory -->
+              <directory>${project.basedir}/src/main/resources
+              </directory>
+            </resource>
+          </webResources>
+          <attachClasses>true</attachClasses>
+        </configuration>
+      </plugin>
+
       <!-- Fires on 'mvn -Dtest=ClassName' where ClassName is junit test class name, for
this project: -->
       <!-- mvn test -Dtest=EmTest -->
       <plugin>


Mime
View raw message