You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2011/03/05 23:49:57 UTC
svn commit: r1078384 - /shiro/trunk/pom.xml
Author: lhazlewood
Date: Sat Mar 5 22:49:57 2011
New Revision: 1078384
URL: http://svn.apache.org/viewvc?rev=1078384&view=rev
Log:
SHIRO-251: added SCM url and revision to .jar MANIFEST.MF to facilitate re-creation.
Modified:
shiro/trunk/pom.xml
Modified: shiro/trunk/pom.xml
URL: http://svn.apache.org/viewvc/shiro/trunk/pom.xml?rev=1078384&r1=1078383&r2=1078384&view=diff
==============================================================================
--- shiro/trunk/pom.xml (original)
+++ shiro/trunk/pom.xml Sat Mar 5 22:49:57 2011
@@ -226,6 +226,44 @@
</configuration>
</plugin>
<plugin>
+ <!-- Add SVN Revision To A JAR Manifest
+ - http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html
+ -->
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>buildnumber-maven-plugin</artifactId>
+ <version>1.0-beta-4</version>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>create</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <doCheck>false</doCheck>
+ <doUpdate>false</doUpdate>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ <manifestEntries>
+ <SCM-Revision>${buildNumber}</SCM-Revision>
+ <SCM-url>${scm.url}</SCM-url>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>