Greetings,

On Mon, Jul 22, 2013 at 8:25 AM, Markus Karg <k...@quipsy.de> wrote:
> When I do mvn release:prepare, Maven asks whether I want to update all
> SNAPSHOT version referenced in the POM.

I don't think the language says that at all. I ran a quick build and
I'm not seeing where it says it will update every single SNAPSHOT
version referenced in the POM. Can you please paste it?

> I say "yes" and confirm all suggested replacement versions unchanged.
> When Maven is done, I check the POM.xml.
> It is correctly rewritten for all references, but not for the parent
> version.

And it should not. It will rewrite the versions for the artifacts in
its build plan, and the parent is not part of the build plan in this
way. It would be horrifying, frankly, if running a release in a
project would go update the parent project also.

> The parent version still references the *old* SNAPSHOT, while obviously
> it should now name the *next* SNAPSHOT.

I don't think it should obviously do that. Perhaps you actually
intended to run the release from the parent, if that is true, then you
should do it from there. Not from within some submodule.

> Can somebody tell me what I have to do so that mvn release:prepare will
> also make the parent version point tot he *next* SNAPSHOT, as it does it
> correctly with the dependencies and the project's own version?

Run the release from the proper location. Or if the parent really does
not have a submodule of the project you're errantly trying to run the
release from right now, then you should release it (parent) first and
then make the updates in the unlinked child projects to the latest
release number. The m-versions-p is quite adept at automating this
process.

-Jesse

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to