You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2008/01/09 02:31:19 UTC
svn commit: r610253 - /incubator/uima/uimaj/trunk/uimaj/pom.xml
Author: schor
Date: Tue Jan 8 17:31:17 2008
New Revision: 610253
URL: http://svn.apache.org/viewvc?rev=610253&view=rev
Log:
[UIMA-694] modified root UIMA pom runs maven plugin to get the time and format it. The jar plugin is modified to set the build-date using this value.
Modified:
incubator/uima/uimaj/trunk/uimaj/pom.xml
Modified: incubator/uima/uimaj/trunk/uimaj/pom.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj/pom.xml?rev=610253&r1=610252&r2=610253&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj/pom.xml (original)
+++ incubator/uima/uimaj/trunk/uimaj/pom.xml Tue Jan 8 17:31:17 2008
@@ -149,7 +149,29 @@
</goals>
</execution>
</executions>
- </plugin>
+ </plugin>
+
+ <!-- something to get the timestamp -->
+ <!-- this plugin sets the output string into the variable buildNumber -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>create</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
+ <items>
+ <item>timestamp</item>
+ </items>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
<reporting>
@@ -215,18 +237,12 @@
<Implementation-Version>${pom.version}</Implementation-Version>
<Implementation-Vendor>Apache Software Foundation</Implementation-Vendor>
<Implementation-Url>${pom.url}</Implementation-Url>
- <Implementation-License>http://www.apache.org/licenses/LICENSE-2.0.txt</Implementation-License>
- <!-- Note: I found no way to access any kind of timestamp from within Maven. This
- property needs to passed on the command line. On Windows, you can do something
- like mvn -Duima.build.date="%date% %time%", in bash, -Duima.build.date="`date`".
- If the property is not specified, the manifest will not contain the build date.
- (tg) -->
- <Build-Date>${uima.build.date}</Build-Date>
+ <Implementation-License>http://www.apache.org/licenses/LICENSE-2.0.txt</Implementation-License>
+ <Build-Date>${buildNumber}</Build-Date>
</manifestEntries>
</archive>
</configuration>
- </plugin>
-
+ </plugin>
</plugins>
</reporting>
<profiles>