changeset 1003:cf5ab5eaeb46

Write svn revision to MANIFEST file while creating war archive. gnv/trunk@1210 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 14 Jun 2010 21:10:14 +0000
parents b1eea43ba133
children a0d16ccb82ba
files gnv/ChangeLog gnv/pom.xml
diffstat 2 files changed, 33 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Sun Jun 13 16:28:37 2010 +0000
+++ b/gnv/ChangeLog	Mon Jun 14 21:10:14 2010 +0000
@@ -1,3 +1,8 @@
+2010-06-14  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* pom.xml: The svn revision number is written to MANIFEST.MF while creating
+	  war archive.
+
 2010-06-10	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	Issue 219
--- a/gnv/pom.xml	Sun Jun 13 16:28:37 2010 +0000
+++ b/gnv/pom.xml	Mon Jun 14 21:10:14 2010 +0000
@@ -7,6 +7,11 @@
   <version>1.0-SNAPSHOT</version>
   <name>gnv</name>
   <url>http://maven.apache.org</url>
+  <scm>
+    <connection>scm:svn:svn+ssh://${user}@thoe.intevation.de/home/projects/Geospatial/bsh-generischer-viewer/Material/SVN/gnv</connection>
+    <developerConnection>scm:svn:svn+ssh://${user}@thoe.intevation.de/home/projects/Geospatial/bsh-generischer-viewer/Material/SVN/gnv</developerConnection>
+    <url>scm:svn:svn+ssh://${user}@thoe.intevation.de/home/projects/Geospatial/bsh-generischer-viewer/Material/SVN/gnv</url>
+  </scm>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   </properties>
@@ -85,6 +90,14 @@
               </excludes>
             </resource>
           </webResources>
+          <archive>
+            <manifest>
+              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+            </manifest>
+            <manifestEntries>
+              <SCM-Revision>${buildNumber}</SCM-Revision>
+            </manifestEntries> 
+          </archive>
         </configuration>
       </plugin>
       <plugin>
@@ -126,32 +139,21 @@
              </configuration>
       </plugin>
       <plugin>
-      <groupId>org.codehaus.mojo</groupId>
-      <artifactId>buildnumber-maven-plugin</artifactId>
-      <version>1.0-beta-2</version>
-      <executions>
-        <execution>
-          <phase>initialize</phase>
-          <goals>
-            <goal>create</goal>
-          </goals>
-        </execution>
-      </executions>
-      <configuration>
-        <doCheck>false</doCheck>
-        <doUpdate>false</doUpdate>
-        <timestampFormat>{0, date, yyyy-MM-dd HH:mm:ss}</timestampFormat>
-         <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
-          <items>
-            <item>timestamp</item>
-          </items>
-        
-        <revisionOnScmFailure>no_revision</revisionOnScmFailure>
-      </configuration>
-    </plugin>
-      
-     
-
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>buildnumber-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>validate</phase>
+            <goals>
+              <goal>create</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <doCheck>true</doCheck>
+          <doUpdate>false</doUpdate>
+        </configuration>
+      </plugin> 
     </plugins>
     <resources>
       <resource>

http://dive4elements.wald.intevation.org