Author: michiel
Date: 2009-05-26 18:23:47 +0200 (Tue, 26 May 2009)
New Revision: 35438

Modified:
   mmbase/trunk/maven-base/pom.xml
Log:
Enabled buildernumber plugin only on non-windows systems. Because I encounted 
one in which is simply fails the complete build

Modified: mmbase/trunk/maven-base/pom.xml
===================================================================
--- mmbase/trunk/maven-base/pom.xml     2009-05-26 11:51:24 UTC (rev 35437)
+++ mmbase/trunk/maven-base/pom.xml     2009-05-26 16:23:47 UTC (rev 35438)
@@ -598,24 +598,6 @@
          </archive>
        </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>
 
@@ -909,7 +891,39 @@
         </plugins>
       </build>
     </profile>
+
     <profile>
+      <id>buildnumber</id>
+      <activation>
+        <os>
+          <family>!Windows</family>
+        </os>
+      </activation>
+      <build>
+        <plugins>
+          <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>
+              <doUpdate>false</doUpdate>
+            </configuration>
+            <executions>
+              <execution>
+                <phase>validate</phase>
+                <goals>
+                  <goal>create</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
       <id>privaterelease</id>
       <!--
           This profile makes it possible to build a release with a different 
version number.

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

Reply via email to