Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[build] add build infos to manifest.mf, use patched buildnumber-maven…

…-plugin to extract git revision infos
  • Loading branch information...
commit 190f0c1034a2f0bb5b2c459f99799a4f0d3b419d 1 parent 3f88aa4
@smee authored
View
9 examServer/pom.xml
@@ -106,7 +106,9 @@
</manifest>
<manifestEntries>
<Implementation-Version>${project.version}</Implementation-Version>
- <Implementation-Build>${buildNumber}</Implementation-Build>
+ <Implementation-Revision>${buildNumber} at ${timestamp}</Implementation-Revision>
+ <Implementation-Branch>${scmBranch}</Implementation-Branch>
+ <Implementation-User>${user.name}</Implementation-User>
</manifestEntries>
</archive>
<webResources>
@@ -148,6 +150,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.0-beta-5-SNAPSHOT</version>
<executions>
<execution>
<id>make-buildnumber</id>
@@ -160,10 +163,6 @@
<configuration>
<doUpdate>false</doUpdate>
<doCheck>false</doCheck>
- <format>{0,date,yyyyMMdd-HH:mm:ss}</format>
- <items>
- <item>timestamp</item>
- </items>
</configuration>
</plugin>
<!--
View
22 taskmodel-log/pom.xml
@@ -50,6 +50,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
+ <version>buildnumber-maven-plugin-1.0-beta-5-SNAPSHOT</version>
<executions>
<execution>
<id>make-buildnumber</id>
@@ -62,10 +63,6 @@
<configuration>
<doUpdate>false</doUpdate>
<doCheck>false</doCheck>
- <format>{0,date,yyyyMMdd}</format>
- <items>
- <item>timestamp</item>
- </items>
</configuration>
</plugin>
<plugin>
@@ -84,6 +81,23 @@
<mainClass>SecureLogClient</mainClass>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <Build-Version>${project.version}</Build-Version>
+ <Build-Revision>${buildNumber} at ${timestamp}</Build-Revision>
+ <Build-Branch>${scmBranch}</Build-Branch>
+ <Build-User>${user.name}</Build-User>
+ <Hudson-Build>${BUILD_NUMBER}</Hudson-Build>
+ <Hudson-BuildId>${BUILD_ID}</Hudson-BuildId>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>
<dependencies>
View
34 taskmodel/pom.xml
@@ -132,21 +132,19 @@
</releases>
<snapshots>
<enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<id>codehausSnapshots</id>
<name>Codehaus Snapshots</name>
- <url>http://snapshots.maven.codehaus.org/maven2</url>
- <layout>default</layout>
- </repository>
+ <url>http://snapshots.repository.codehaus.org</url>
+ </repository>
+
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
-
</repositories>
@@ -230,10 +228,6 @@
<configuration>
<doUpdate>false</doUpdate>
<doCheck>false</doCheck>
- <format>{0,date,yyyyMMdd}</format>
- <items>
- <item>timestamp</item>
- </items>
</configuration>
</plugin>
<!-- erstelle eclipse projekte aus unterprojekten mit 'mvn eclipse:eclipse' -->
@@ -249,7 +243,25 @@
<wtpversion>2.0</wtpversion>
</configuration>
</plugin>
-
+ <!-- add custom infos to meta-inf -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <Build-Version>${project.version}</Build-Version>
+ <Build-Revision>${buildNumber} at ${timestamp}</Build-Revision>
+ <Build-Branch>${scmBranch}</Build-Branch>
+ <Build-User>${user.name}</Build-User>
+ <Hudson-Build>${BUILD_NUMBER}</Hudson-Build>
+ <Hudson-BuildId>${BUILD_ID}</Hudson-BuildId>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
+
<!--
Stoppe den Build, wenn unterschiedliche Versionen derselben Dependency verwendet werden soll.
Aufruf mit: mvn com.hexapixel.maven.plugins:maven-breakonversionclash-plugin:clash-detection
@@ -290,7 +302,7 @@
<maven.release.plugin.version>2.0-beta-8</maven.release.plugin.version>
<maven.source.plugin.version>2.0.4</maven.source.plugin.version>
<maven.project-info.report.plugin.version>2.1</maven.project-info.report.plugin.version>
- <mojo.buildnumber.plugin.version>1.0-beta-1</mojo.buildnumber.plugin.version>
+ <mojo.buildnumber.plugin.version>1.0-beta-5-SNAPSHOT</mojo.buildnumber.plugin.version>
<mojo.stat-scm.plugin.version>1.1.0</mojo.stat-scm.plugin.version>
<mojo.l10n-maven-plugin.version>1.0-alpha-1</mojo.l10n-maven-plugin.version>
<maven-overview-plugin.version>1.3</maven-overview-plugin.version>
View
8 taskmodel/taskmodel-core-view/pom.xml
@@ -219,8 +219,12 @@
</manifest>
<manifestEntries>
<Implementation-Version>${project.version}</Implementation-Version>
- <Implementation-Build>${buildNumber}</Implementation-Build>
- </manifestEntries>
+ <Implementation-Revision>${buildNumber} at ${timestamp}</Implementation-Revision>
+ <Implementation-Branch>${scmBranch}</Implementation-Branch>
+ <Implementation-User>${user.name}</Implementation-User>
+ <Hudson-Build>${BUILD_NUMBER}</Hudson-Build>
+ <Hudson-BuildId>${BUILD_ID}</Hudson-BuildId>
+ </manifestEntries>
</archive>
<webResources>
<resource>
Please sign in to comment.
Something went wrong with that request. Please try again.