summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/pom.xml
diff options
context:
space:
mode:
authorJonathan Bauer2015-09-04 21:54:21 +0200
committerJonathan Bauer2015-09-04 21:54:21 +0200
commit2851478f7eee4b91de78e1fd3066fd7fc4ea8bbc (patch)
treef4a162621740a0dd00e8a7b739c7c501e1d16677 /dozentenmodul/pom.xml
parent[server] Sanitize permissions when saving/checking (diff)
downloadtutor-module-2851478f7eee4b91de78e1fd3066fd7fc4ea8bbc.tar.gz
tutor-module-2851478f7eee4b91de78e1fd3066fd7fc4ea8bbc.tar.xz
tutor-module-2851478f7eee4b91de78e1fd3066fd7fc4ea8bbc.zip
[client] pom.xml: use maven buildnumber plugin to dump the revision and its timestamp to the jar's manifest
also dump the time the jar was build into the manifest
Diffstat (limited to 'dozentenmodul/pom.xml')
-rw-r--r--dozentenmodul/pom.xml37
1 files changed, 34 insertions, 3 deletions
diff --git a/dozentenmodul/pom.xml b/dozentenmodul/pom.xml
index 42a16453..f2a709d8 100644
--- a/dozentenmodul/pom.xml
+++ b/dozentenmodul/pom.xml
@@ -9,7 +9,9 @@
<name>DozMod-Client</name>
<url>http://maven.apache.org</url>
-
+ <scm>
+ <connection>scm:git:git://git.openslx.org/openslx-ng/tutor-module.git</connection>
+ </scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<main.class>org.openslx.dozmod.App</main.class>
@@ -47,13 +49,30 @@
<id>swt-repo</id>
<url>https://raw.githubusercontent.com/maven-eclipse/swt-repo/master/</url>
</repository>
-
-
</repositories>
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>create</goal>
+ <goal>create-timestamp</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doCheck>false</doCheck>
+ <doUpdate>false</doUpdate>
+ <timestampPropertyName>revision.timestamp</timestampPropertyName>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
@@ -78,7 +97,14 @@
<archive>
<manifest>
<mainClass>${main.class}</mainClass>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
+ <manifestEntries>
+ <Build-Timestamp>${maven.build.timestamp}</Build-Timestamp>
+ <Build-Revision>${buildNumber}</Build-Revision>
+ <Build-Revision-Timestamp>${revision.timestamp}</Build-Revision-Timestamp>
+ </manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
@@ -101,6 +127,11 @@
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${main.class}</mainClass>
+ <manifestEntries>
+ <Build-Timestamp>${maven.build.timestamp}</Build-Timestamp>
+ <Build-Revision>${buildNumber}</Build-Revision>
+ <Build-Revision-Timestamp>${revision.timestamp}</Build-Revision-Timestamp>
+ </manifestEntries>
</transformer>
</transformers>
</configuration>