Hi Kevin,
> I need to have access to both a sequential build number and the SVN
> revision for my project. Does anyone have a means of accomplishing
> this using the buildnumber plugin?
I would suggest using the buildnumber-maven-plugin only for the SCM
revision, and passing the actual CIS build number directly.
If you are using Jenkins, you can pass the build number to the Maven
runtime via "mvn -Djenkins.build.number=$BUILD_NUMBER" and then bake it
into your JAR manifest; e.g.:
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestEntries>
<Implementation-Revision>${buildNumber}</Implementation-Revision>
<Implementation-Jenkins-Build>${jenkins.build.number}</Implementation-Jenkins-Build>
</manifestEntries>
</archive>
</configuration>
</plugin>
Regards,
Curtis
On Wed, Oct 17, 2012 at 9:42 AM, kep617 <[email protected]> wrote:
> Hi,
>
> I need to have access to both a sequential build number and the SVN
> revision
> for my project. Does anyone have a means of accomplishing this using the
> buildnumber plugin?
>
> Thanks,
> Kevin
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/buildNumber-plugin-Can-you-get-both-number-and-SCM-Revision-tp5726943.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>