You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Jim Talbut <Ji...@groupgti.com> on 2011/08/15 11:02:29 UTC
buildnumber-maven-plugin with maven-bundle-plugin
Hi,
In my pom.xml I have:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>hgchangeset</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.5</version>
<extensions>true</extensions>
<configuration>
<instructions>
<!--
<Export-Package>org.foo.myproject.api</Export-Package>
<Private-Package>org.foo.myproject.*</Private-Package>
<Bundle-Activator>org.foo.myproject.impl1.Activator</Bundle-Activator>
-->
</instructions>
<archive>
<manifestEntries>
<Build-Change-Set>${changeSet}</Build-Change-Set>
<Build-Change-Set-Date>${changeSetDate}</Build-Change-Set-Date>
<Build-Location>${basedir}</Build-Location>
<Build-Machine>${env.HOSTNAME}</Build-Machine>
<Build-Date>${maven.build.timestamp}</Build-Date>
</manifestEntries>
</archive>
</configuration>
</plugin>
But when I build the project the manifest contains:
Build-Change-Set: ${changeSet}
Build-Change-Set-Date: ${changeSetDate}
Build-Date: 2011-08-15 09:49:46
Build-Jdk: 1.6.0_25
Build-Location: C:\Work\
If I run maven with -X I can see:
[DEBUG] Configuring mojo 'org.apache.felix:maven-bundle-plugin:2.3.5:bundle' with basic configurator -->
[DEBUG] (s) manifestEntries = {Build-Change-Set=dc5680fe729b+, Build-Change-Set-Date=2011-08-12 14:03 +0100, Build-Date=2011-08-15 09:49:46, Build- Location=C:\Work\esb_targetjobs_userdata_load\userdata_load, Build-Machine=DT-WALL-806}
...
[DEBUG] -- end configuration --
[DEBUG] BND Instructions:
#-----------------------------------------------------------------------
#Mon Aug 15 09:50:06 BST 2011
...
changeSet=dc5680fe729b+
...
changeSetDate=2011-08-12 14\:03 +0100
...
#-----------------------------------------------------------------------
[DEBUG] Final Manifest:
#-----------------------------------------------------------------------
...
Build-Change-Set: ${changeSet}
...
Build-Change-Set-Date: ${changeSetDate}
What do I have to do to get these two properties stored in the manifest file?
Thanks.
Jim Talbut
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org