When I execute mvn release:prepare
, I end up with two new files, release.properties
and pom.xml.releaseBackup
, and when I execute mvn release:perform
, those two files do not get removed.
I've read up about the maven release process, and I understand that these files are not removed, and I understand why.
What I can't find out is whether or not those files should be checked in, deleted, or ignored.
Maven will compile, test and package the versioned project source code into an artifact. The final deliverable will then be released into an appropriate maven repository. The release:perform goal will: Extract file revisions versioned under the new tag name.
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.
Oops, they're not left behind. I had a problem in my POM, and the release failed. After fixing the POM and redoing the release, the files disappeared.
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