Mercurial > dive4elements > gnv-client
changeset 1095:c961cd9a13f7
Write svn revision to MANIFEST file while creating jar archive.
gnv-artifacts/trunk@1211 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 14 Jun 2010 21:12:23 +0000 |
parents | e71e982772a9 |
children | 41630b457b6a |
files | gnv-artifacts/ChangeLog gnv-artifacts/pom.xml |
diffstat | 2 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Mon Jun 14 09:56:34 2010 +0000 +++ b/gnv-artifacts/ChangeLog Mon Jun 14 21:12:23 2010 +0000 @@ -1,3 +1,7 @@ +2010-06-14 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + * pom.xml: Write svn revision to MANIFEST file while creating jar archive. + 2010-06-14 Ingo Weinzierl <ingo.weinzierl@intevation.de> Issue250 - Adjusted subtitle of 'Achsenparalleles Vertikalprofil'
--- a/gnv-artifacts/pom.xml Mon Jun 14 09:56:34 2010 +0000 +++ b/gnv-artifacts/pom.xml Mon Jun 14 21:12:23 2010 +0000 @@ -7,12 +7,33 @@ <version>1.0-SNAPSHOT</version> <name>gnv-artifacts</name> <url>http://maven.apache.org</url> + <scm> + <connection>scm:svn:svn+ssh://${user}@thoe.intevation.de/home/projects/Geospatial/bsh-generischer-viewer/Material/SVN/gnv-artifacts</connection> + <developerConnection>scm:svn:svn+ssh://${user}@thoe.intevation.de/home/projects/Geospatial/bsh-generischer-viewer/Material/SVN/gnv-artifacts</developerConnection> + <url>scm:svn:svn+ssh://${user}@thoe.intevation.de/home/projects/Geospatial/bsh-generischer-viewer/Material/SVN/gnv-artifacts</url> + </scm> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>buildnumber-maven-plugin</artifactId> + <executions> + <execution> + <phase>validate</phase> + <goals> + <goal>create</goal> + </goals> + </execution> + </executions> + <configuration> + <doCheck>false</doCheck> + <doUpdate>true</doUpdate> + </configuration> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.5.1</version> @@ -26,6 +47,20 @@ <target>1.5</target> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> + </manifest> + <manifestEntries> + <SCM-Revision>${buildNumber}</SCM-Revision> + </manifestEntries> + </archive> + </configuration> + </plugin> </plugins> </build> <dependencies>