Author: michiel
Date: 2009-10-20 09:06:59 +0200 (Tue, 20 Oct 2009)
New Revision: 39227

Modified:
   mmbase/trunk/pom.xml
Log:
getting a timestamp, using profiles. Those kind of trivialities are very hard 
in maven.

Modified: mmbase/trunk/pom.xml
===================================================================
--- mmbase/trunk/pom.xml        2009-10-19 20:00:46 UTC (rev 39226)
+++ mmbase/trunk/pom.xml        2009-10-20 07:06:59 UTC (rev 39227)
@@ -428,6 +428,22 @@
           </check>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>com.keyboardsamurais.maven</groupId>
+        <artifactId>maven-timestamp-plugin</artifactId>
+        <version>0.1</version>
+        <configuration>
+          <propertyName>timestamp</propertyName>
+          <timestampPattern>dd.MM.yyyy HH:mm</timestampPattern>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>create</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
   <reporting>
@@ -636,39 +652,7 @@
       </distributionManagement>
     </profile>
 
-    <profile>
-      <id>buildnumber</id>
-      <activation>
-        <os>
-          <family>!Windows</family> <!-- sigh, it simply won't work -->
-        </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>
 
-
   </profiles>
 
 </project>

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to