You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by so...@apache.org on 2011/02/16 00:36:53 UTC
svn commit: r1071107 - /myfaces/trinidad/trunk/trinidad-api/pom.xml
Author: sobryan
Date: Tue Feb 15 23:36:53 2011
New Revision: 1071107
URL: http://svn.apache.org/viewvc?rev=1071107&view=rev
Log:
TRINIDAD-2037: Unable to build from source archive
* Added a new "extended-manifest" profile which will now include revision information in the manifest
* Revision information is no longer included in the manifest by default
Modified:
myfaces/trinidad/trunk/trinidad-api/pom.xml
Modified: myfaces/trinidad/trunk/trinidad-api/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/pom.xml?rev=1071107&r1=1071106&r2=1071107&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/pom.xml (original)
+++ myfaces/trinidad/trunk/trinidad-api/pom.xml Tue Feb 15 23:36:53 2011
@@ -32,7 +32,7 @@
<artifactId>trinidad-api</artifactId>
<packaging>jar</packaging>
-
+
<dependencies>
<dependency>
@@ -169,29 +169,6 @@
</executions>
</plugin>
- <!--
- To make the current revision number, we use the buildnumber-maven-plugin.
- -->
- <!--plugin>
- <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>
- <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
- <buildNumberPropertyName>scm.revision</buildNumberPropertyName>
- </configuration>
- </plugin-->
-
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@@ -202,7 +179,6 @@
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
- <Revision>${scm.revision}</Revision>
<Maven-Version>${maven.version}</Maven-Version>
<Java-Vendor>${java.vendor}</Java-Vendor>
<Os-Name>${os.name}</Os-Name>
@@ -380,5 +356,48 @@
</plugins>
</build>
</profile>
+
+ <!-- This adds further debugging information to the manifest. Currently this is the svn revision number of the build. -->
+ <profile>
+ <id>extended-manifest</id>
+
+ <build>
+ <plugins>
+ <!--
+ To make the current revision number, we use the buildnumber-maven-plugin.
+ -->
+ <plugin>
+ <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>
+ <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
+ <buildNumberPropertyName>scm.revision</buildNumberPropertyName>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <Revision>${scm.revision}</Revision>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>