Search code examples
mavenrelease

Maven - release:prepare without committing


i'm looking to release a stand-alone patch without committing it. when i prepare a release for a version i get the following error:[ERROR] fatal: Not a git repository (or any of the parent directories): .git

can i release without committing?

for now, what i'm doing is generate a jar locally and upload it manually as an artifact.


Solution

  • I had the same issue with mercurial. You need to use the -DpushChanges=false argument.

    See my anwser to a similar question: link