Specify artifact version outside of pom

Posted by Adam B on Stack Overflow See other posts from Stack Overflow or by Adam B
Published on 2010-06-03T15:51:16Z Indexed on 2010/06/03 15:54 UTC
Read the original article Hit count: 207

Is there a way to specify the artifact version outside of the POM file?

I have 2 CI projects that build an artifact. One builds a "stable" development version from a 'develop' branch and the other builds an unstable version which is the result of merging all active feature branches into the develop branch. I want the stable version to build as xyz-1.0.jar and the integration build to go in as xyz-1.0-SNAPSHOT.jar. Is there a way for the CI job to run a maven task or specify via the command line if a release or snapshot jar should be built without manually modifying the POM? Currently I have the version specified as 1.0 in the pom. I considered using the release plugin but I don't want the automatic version number increase and tagging that it does.

© Stack Overflow or respective owner

Related posts about continuous-integration

Related posts about hudson