Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When performing a release in maven, what should I do with the pom.xml.releaseBackup and release.properties files?

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.

like image 956
Phil Avatar asked Oct 17 '13 06:10

Phil


People also ask

How does Maven release work?

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.

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.


1 Answers

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.

like image 74
Phil Avatar answered Oct 29 '22 17:10

Phil