3

I'm trying associate maven artifacts name with build number. ex: sample.1.0.0-snapshot.ear into sample.1.0.0-snapshot.buildnumber.ear

I have tried maven-buildnumber plugin but still no luck.

could anyone help me to do this.

thakshira
  • 81
  • 1
  • 2
  • 6

1 Answers1

3

You can use the Versions Maven plugin by executing following command before any other maven targets after clean.

mvn versions:set -DnewVersion=sample.1.0.0-snapshot.$BUILD_NUMBER

Suresh
  • 730
  • 1
  • 5
  • 12