You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Christian Grobmeier <gr...@gmail.com> on 2013/09/20 10:10:53 UTC

Release Plugin doesn't commit poms correctly anymore

Hi folks,

I have used the release plugin fro a millions of releases. And suddenly
it stopped working as expected.

I am doing:

$> mvn release:prepare
$> mvn release:perform

And usually I see commits of the kind:

[maven-release-plugin] prepare release v3.2.2

When i did an minor upgrade today, I didn't see such commits. In fact,
my pom was updated to the correct version, but this update was not
committed. My release tag contains 3.2.3-SNAPSHOT as version, while the
tag itself has the right name.

I checked my source code, but between this release and the last only the
Struts version has changed (it's a security release). That's why I am
confused. I have reinstalled MacPorts recently, but that's the only
thing which has changed and I can't imagine a connection.

My output doesn't show any error.

Previously i have used release plugin version 2.3.1, but when the error
appeared I upgraded to 2.4.

--- maven-release-plugin:2.4:prepare (default-cli) @ webapp ---
[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: **/pom.xml.backup, **/release.properties,
**/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git
status --porcelain
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Ignoring SNAPSHOT depenedencies and plugins ...
What is the release version for "webapp"? (de.grobmeier.tab:webapp)
3.2.3: :
What is SCM release tag or label for "webapp"? (de.grobmeier.tab:webapp)
v3.2.3: :
What is the new development version for "webapp"?
(de.grobmeier.tab:webapp) 3.2.4-SNAPSHOT: :
[INFO] Transforming 'webapp'...
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[WARNING] Maven will be executed in interactive mode, but no input
stream has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...

I am not sure if the output "Not generating release POMs" has anything
to do with it? I have never used the generate-with-pom goal.

After this my test run and I see my webapp build. Then:

[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git add
-- pom.xml
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git
status --porcelain
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Tagging release with the label v3.2.3...
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git tag
-F /var/folders/87/crypticnumber/T/maven-scm-1111111.commit v3.2.3
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git push
git@host:user/project.git v3.2.3
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git ls-files
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Transforming 'webapp'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git add
-- pom.xml
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git
status --porcelain
[INFO] Working directory: /Users/cg/project.git/webapp
[INFO] Release preparation complete.

>From the output, I would have thought everything went well. But as
mentioned, it's not the case.

Any ideas are much welcome. It doesn't feel well that way.

Thanks!

Christian


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


Re: Release Plugin doesn't commit poms correctly anymore

Posted by Christian Grobmeier <gr...@gmail.com>.
Thanks a lot Tim. v2.4.1 works well for me.

For the record: with my reinstallation of MacPort I upgraded GIT to
1.8.4. With that in mind it makes sense why it "suddenly stopped".

Cheers
Tim Kettler schrieb:
> Am 20.09.2013 10:46, schrieb Tim Kettler:
>> Am 20.09.2013 10:10, schrieb Christian Grobmeier:
>>> Hi folks,
>>>
>>> I have used the release plugin fro a millions of releases. And suddenly
>>> it stopped working as expected.
>>>
>>> I am doing:
>>>
>>> $> mvn release:prepare
>>> $> mvn release:perform
>>>
>>> And usually I see commits of the kind:
>>>
>>> [maven-release-plugin] prepare release v3.2.2
>>>
>>> ------8<-----------
>>>
>>> Previously i have used release plugin version 2.3.1, but when the error
>>> appeared I upgraded to 2.4.
>>>
>>> --- maven-release-plugin:2.4:prepare (default-cli) @ webapp ---
>>> [INFO] Verifying that there are no local modifications...
>>> [INFO]   ignoring changes on: **/pom.xml.backup, **/release.properties,
>>> **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup,
>>> **/pom.xml.tag
>>> [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git
>>> status --porcelain
>>> [INFO] Working directory: /Users/cg/project.git/webapp
>>>
>>> ------8<-----------
>>>
>>> Any ideas are much welcome. It doesn't feel well that way.
>>
>> You probably hit MRELEASE-812 [1]. The release-plugin-2.4 is borked when
>> using git and releasing not from the repository root.
>>
> 
> What you should use is release-plugin-2.4.1. That reverts the scm lib
> back to a working version: http://jira.codehaus.org/browse/MRELEASE-830
> 
>>>
>>> Thanks!
>>>
>>> Christian
>>
>> -Tim
>>
>> [1] http://jira.codehaus.org/browse/MRELEASE-812
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

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


Re: Release Plugin doesn't commit poms correctly anymore

Posted by Tim Kettler <ti...@udo.edu>.
Am 20.09.2013 10:46, schrieb Tim Kettler:
> Am 20.09.2013 10:10, schrieb Christian Grobmeier:
>> Hi folks,
>>
>> I have used the release plugin fro a millions of releases. And suddenly
>> it stopped working as expected.
>>
>> I am doing:
>>
>> $> mvn release:prepare
>> $> mvn release:perform
>>
>> And usually I see commits of the kind:
>>
>> [maven-release-plugin] prepare release v3.2.2
>>
>> ------8<-----------
>>
>> Previously i have used release plugin version 2.3.1, but when the error
>> appeared I upgraded to 2.4.
>>
>> --- maven-release-plugin:2.4:prepare (default-cli) @ webapp ---
>> [INFO] Verifying that there are no local modifications...
>> [INFO]   ignoring changes on: **/pom.xml.backup, **/release.properties,
>> **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup,
>> **/pom.xml.tag
>> [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git
>> status --porcelain
>> [INFO] Working directory: /Users/cg/project.git/webapp
>>
>> ------8<-----------
>>
>> Any ideas are much welcome. It doesn't feel well that way.
>
> You probably hit MRELEASE-812 [1]. The release-plugin-2.4 is borked when
> using git and releasing not from the repository root.
>

What you should use is release-plugin-2.4.1. That reverts the scm lib 
back to a working version: http://jira.codehaus.org/browse/MRELEASE-830

>>
>> Thanks!
>>
>> Christian
>
> -Tim
>
> [1] http://jira.codehaus.org/browse/MRELEASE-812
>


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


Re: Release Plugin doesn't commit poms correctly anymore

Posted by Tim Kettler <ti...@udo.edu>.
Am 20.09.2013 10:10, schrieb Christian Grobmeier:
> Hi folks,
>
> I have used the release plugin fro a millions of releases. And suddenly
> it stopped working as expected.
>
> I am doing:
>
> $> mvn release:prepare
> $> mvn release:perform
>
> And usually I see commits of the kind:
>
> [maven-release-plugin] prepare release v3.2.2
>
> ------8<-----------
>
> Previously i have used release plugin version 2.3.1, but when the error
> appeared I upgraded to 2.4.
>
> --- maven-release-plugin:2.4:prepare (default-cli) @ webapp ---
> [INFO] Verifying that there are no local modifications...
> [INFO]   ignoring changes on: **/pom.xml.backup, **/release.properties,
> **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag
> [INFO] Executing: /bin/sh -c cd /Users/cg/project.git/webapp && git
> status --porcelain
> [INFO] Working directory: /Users/cg/project.git/webapp
>
> ------8<-----------
>
> Any ideas are much welcome. It doesn't feel well that way.

You probably hit MRELEASE-812 [1]. The release-plugin-2.4 is borked when 
using git and releasing not from the repository root.

>
> Thanks!
>
> Christian

-Tim

[1] http://jira.codehaus.org/browse/MRELEASE-812


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