I use maven2, hudson and sonar when doing sonar analysis - I would like to somehow add Hudson build # to the maven project version
The project version changes every 2 weeks - this is an example in the first 2 weeks:
<version>abc-SNAPSHOT</version>
in two weeks, the next version may look something like this:
<version>xyz-SNAPSHOT</version>
I want to add construct # to the version already present in pom, which is selected and passed to sonar
Note:
-Dsonar.projectVersion=xyz-SNAPSHOT-${BUILD_NUMBER}
Here - I hardcode the version and dynamically pass the assembly #
what I want is the ability to dynamically select a version from maven (without changing it) and simply add dynamically dynamically
any ideas on how this can be achieved? Thanks, Satish
maven sonarqube
satish marathe Feb 04 '13 at 17:13 2013-02-04 17:13
source share