maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darryl L. Miles (JIRA)" <>
Subject [jira] (MRELEASE-808) prepare-with-pom needs to be run twice when <finalName> contains ${project.version}
Date Tue, 04 Dec 2012 22:33:13 GMT
Darryl L. Miles created MRELEASE-808:

             Summary: prepare-with-pom needs to be run twice when <finalName> contains
                 Key: MRELEASE-808
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
    Affects Versions: 2.3.2
            Reporter: Darryl L. Miles

Setup your project with a <project><build><finalName> element setup like:


Setup ${project.version} to a SNAPSHOT like:


The key thing here is the use of ${project.version} in the <finalName> and ew start
with a SNAPSHOT version trying to perform a release.

Now we run: mvn release:prepare-with-pom

It will bail out with error now and a message ... "Cannot reliably adjust the finalName of
project:" and I believe this is due to the -SNAPSHOT being visible and the code that throw
the exception is looking at the original, unedited version of the pom.xml.

I think after editing the pom.xml the in-memory model should be refreshed and all ${variable}
be re-interpreted.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message