Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
62a0030f
Commit
62a0030f
authored
5 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Trying to add build info to zip & manifest
parent
42c2a287
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pom.xml
+37
-0
pom.xml
with
37 additions
and
0 deletions
+37
-0
pom.xml
+
37
-
0
View file @
62a0030f
...
...
@@ -3,11 +3,18 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
eu.simstadt
</groupId>
<artifactId>
RegionChooser
</artifactId>
<version>
0.1.0-SNAPSHOT
</version>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<scm>
<connection>
scm:git:file://${project.baseUri}/.git
</connection>
<developerConnection>
scm:git:file://${project.baseUri}/.git
</developerConnection>
</scm>
<dependencies>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
...
...
@@ -37,6 +44,7 @@
</dependencies>
<build>
<plugins>
<!-- Is it really needed? -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
...
...
@@ -53,6 +61,29 @@
</execution>
</executions>
</plugin>
<!-- Gets info from git, e.g. hash and datetime -->
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
buildnumber-maven-plugin
</artifactId>
<version>
1.4
</version>
<executions>
<execution>
<phase>
validate
</phase>
<goals>
<goal>
create
</goal>
</goals>
</execution>
</executions>
<configuration>
<timestampFormat>
{0,date,yyyyMMdd}
</timestampFormat>
<shortRevisionLength>
7
</shortRevisionLength>
<doCheck>
false
</doCheck>
<doUpdate>
false
</doUpdate>
</configuration>
</plugin>
<!-- Packs everything in a zip -->
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<configuration>
...
...
@@ -66,6 +97,8 @@
<descriptors>
<descriptor>
${basedir}/buildConfig/assemblyDesc.xml
</descriptor>
</descriptors>
<finalName>
RegionChooser_${project.version}_${scmBranch}_${timestamp}_${buildNumber}
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
</configuration>
<executions>
<execution>
...
...
@@ -88,6 +121,10 @@
<classpathPrefix>
libs/
</classpathPrefix>
<mainClass>
eu.simstadt.regionchooser.RegionChooserFX
</mainClass>
</manifest>
<manifestEntries>
<Implementation-URL>
http://simstadt.hft-stuttgart.de/
</Implementation-URL>
<Implementation-Version>
${project.version} (${scmBranch}, rev. ${buildNumber}, ${timestamp})
</Implementation-Version>
</manifestEntries>
</archive>
</configuration>
</plugin>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment