maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torben Knerr (JIRA)" <>
Subject [jira] (MRELEASE-812) "prepare" does not commit before tagging and therefore deploys snapshot instead of release
Date Thu, 07 Aug 2014 09:58:13 GMT


Torben Knerr commented on MRELEASE-812:

Interestingly, I'm seeing this with maven-3.0.5 / maven-release-plugin 2.4.2 on our build
server (ubuntu) but not on my local windows machine (windows).

I had run exactly the same commands ({{mvn release:clean release:prepare -B -X -DreleaseVersion=1.0-alpha-1
-DupdateWorkingCopyVersions=false}}) on both my windows workstation and on our ubuntu buildserver.

They produced exactly the same output, same plugin dependencies (run with {{-X}} flag), but
on the buildserver the commit / push of the modified pom was missing.

I have no clue why this behaves differently on my windows workstation vs. buildserver.

Pinning maven-release-plugin to 2.5 in pluginManagement solved the problem for me.

> "prepare" does not commit before tagging and therefore deploys snapshot instead of release
> ------------------------------------------------------------------------------------------
>                 Key: MRELEASE-812
>                 URL:
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: Git
>    Affects Versions: 2.3.2, 2.4
>            Reporter: Andrei Pozolotin
>            Assignee: Robert Scholte
>            Priority: Critical
>             Fix For: 2.5
>         Attachments: mvn-2.3.2.txt, mvn-2.4.0.txt
> thank you very much for new release!
> it seems we need an emergency fix:
> attached are 2 logs:
> 1) mvn-2.3.2.txt invocation that works fine with 2.3.2
> 2) mvn-2.4.0.txt invocation that fails with 2.4
> problem:
> "perform" does not commit tags, deploys snapshot instead of release
> here is project parent:
> build is invoked both times with this:
> mvn --define resume=false release:prepare
> mvn --define resume=false release:perform

This message was sent by Atlassian JIRA

View raw message