Reputation: 1712
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.
Upvotes: 6
Views: 16874
Reputation: 4040
I had the same issue with mercurial. You need to use the -DpushChanges=false
argument.
See my anwser to a similar question: link
Upvotes: 20
Reputation: 4385
If you don't want to commit anything to the SCM, I think you should try do to a dry run :
Since the Release Plugin performs a number of operations that change the project, it may be wise to do a dry run before a big release or on a new project. To do this, commit all of your files as if you were about to run a full release and run:
mvn release:prepare -DdryRun=true
This is a parameter of the release:prepare Mojo : dryRun.
Upvotes: 9