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.
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)
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With