Author: michiel
Date: 2009-05-12 18:33:36 +0200 (Tue, 12 May 2009)
New Revision: 35100

Modified:
   mmbase/trunk/maven-base/pom.xml
Log:
Adding SCM-version to Manifests. Refuse to deploy locally modified stuff.

Modified: mmbase/trunk/maven-base/pom.xml
===================================================================
--- mmbase/trunk/maven-base/pom.xml     2009-05-12 15:42:45 UTC (rev 35099)
+++ mmbase/trunk/maven-base/pom.xml     2009-05-12 16:33:36 UTC (rev 35100)
@@ -97,6 +97,8 @@
 
     <junit.version>4.4</junit.version>
 
+    <buildnumber.doCheck>false</buildnumber.doCheck>
+
     <mmbase.version>1.9-SNAPSHOT</mmbase.version>
     <!-- Cannot be project.version, because then an extension of this cannot 
have it's own version any more -->
 
@@ -543,6 +545,24 @@
           <showDeprecation>false</showDeprecation>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>buildnumber-maven-plugin</artifactId>
+        <configuration>
+          <buildNumberPropertyName>sources.version</buildNumberPropertyName>
+          <timestampPropertyName>timestamp</timestampPropertyName>
+          <timestampFormat>{0,date,yyyy-MM-dd'T'HH:mm}</timestampFormat>
+          <doCheck>${buildnumber.doCheck}</doCheck>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>validate</phase>
+            <goals>
+              <goal>create</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 
@@ -795,6 +815,9 @@
     </profile>
     <profile>
       <id>deploy</id>
+      <properties>
+        <buildnumber.doCheck>true</buildnumber.doCheck>
+      </properties>
       <build>
         <defaultGoal>deploy</defaultGoal>
         <plugins>

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to