Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If Maven release:prepare fails, how to continue from the failed point?

Can anyone please suggest how to continue the maven release:prepare from the point which failed?

I tried with the resume command, but it does not continue from the failed point.

like image 229
user2400564 Avatar asked May 24 '13 12:05

user2400564


People also ask

What is mvn release prepare?

Preparing a release goes through the following release phases by default: Check that there are no uncommitted changes in the sources. Check that there are no SNAPSHOT dependencies. Change the version in the POMs from x-SNAPSHOT to a new version (you will be prompted for the versions to use)

Is it possible to make a release from project which has snapshot dependencies?

helped in my case, this will allow to use dependencies with snapshot version to prepare and perform a release. This option should be handled very carefully, because using snapshot versions in a release can later break your release, if the snapshot dependency is updated, which in normal case is not what you want.

How does mvn release rollback execute when Maven release plugin works?

When a release is rolled back, the following release phases are executed by default: All project POMs are reverted back to their pre-release state locally, and also in the SCM if the previous release command was able to successfully make changes in the SCM to the POMs.


2 Answers

Quote from the docs:

If an error occurs, or the process is cancelled, then running this command again will pick up from where the last one left off.

So, just run mvn release:prepare again.

like image 146
Igor Mukhin Avatar answered Nov 08 '22 03:11

Igor Mukhin


Is it feasible for you to start over with preparing and performing the release?

Then you could try mvn release:rollback.

If that doesnt work, delete the new files that were created, pom.xml.releasBackup and release.properties and try over.

like image 45
vikingsteve Avatar answered Nov 08 '22 01:11

vikingsteve