diff options
author | Manuel Bentele | 2021-06-01 14:30:53 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-06-01 14:30:53 +0200 |
commit | f941a372589a8f2fa27db208d6c6488dfbad8e1f (patch) | |
tree | 56749ea70dd7717854e15baf3f79049ee3c12c60 | |
parent | [server] Refactor container network to match common Docker network (diff) | |
download | tutor-module-f941a372.tar.gz tutor-module-f941a372.tar.xz tutor-module-f941a372.zip |
[server] Package build version and timestamp into MANIFEST.MF
Fixes: #3857
-rw-r--r-- | dozentenmodulserver/pom.xml | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/dozentenmodulserver/pom.xml b/dozentenmodulserver/pom.xml index 6c22666f..c54ce5bf 100644 --- a/dozentenmodulserver/pom.xml +++ b/dozentenmodulserver/pom.xml @@ -10,10 +10,13 @@ <name>DozMod-Server</name> <url>https://git.openslx.org/openslx-ng/tutor-module.git</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.bwlp.sat.App</main.class> + <maven.build.timestamp.format>yyyy.MM.dd HH:mm</maven.build.timestamp.format> </properties> <repositories> @@ -97,6 +100,25 @@ <build> <plugins> <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>buildnumber-maven-plugin</artifactId> + <version>1.4</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.6.1</version> @@ -133,7 +155,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> |