I'm trying to replicate our Maven-1 nightly build/deploy process with
Maven-2. Basically, a build server passes the current version to a maven
process that then produces artifacts with that version number appended.

Since the build occurs on the same machine as the repo, I'm guessing I can
perform an 'install' instead of a 'deploy'. I've found that this:

    mvn -Dversion=1.1.1 install

will produce numbered artifacts if the pom contains these snippets:

    <project>
        ...
        <version>${version}</version>

        <properties>
            <version>1.1-SNAPSHOT</version>
        </properties>
        ...
    </project>

The problem is the reposed .pom files contain the ${version} string instead
of the defined version (1.1.1). Is there any way for the deployed pom to be
the result of filtering the build pom with the defined system property?  Or
more importantly, is there a better way to go about what I'm trying to
achieve?

Thanks for any pointers.

     Jeff
-- 
View this message in context: 
http://old.nabble.com/Subject%3A-Adding-version-numbers-to-artifacts-tp26507407p26507407.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]

Reply via email to