diff --git a/Makefile b/Makefile index 7568145..7a883ce 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ clean: .PHONY: build build: - mvn versions:set -DnewVersion=$(version) -DgenerateBackupPoms=false + mvn org.codehaus.mojo:versions-maven-plugin:2.17.1:set -DnewVersion=$(version) -DgenerateBackupPoms=false mvn package -DskipTests=true cp ./target/$(artifact_name)-$(version).jar ./$(artifact_name).jar @@ -31,7 +31,7 @@ ifndef version $(error No version given. Aborting) endif $(info Packaging version: $(version)) - mvn versions:set -DnewVersion=$(version) -DgenerateBackupPoms=false + mvn org.codehaus.mojo:versions-maven-plugin:2.17.1:set -DnewVersion=$(version) -DgenerateBackupPoms=false mvn package -DskipTests=true $(eval tmpdir:=$(shell mktemp -d build-XXXXXXXXXX)) cp ./target/$(artifact_name)-$(version).jar $(tmpdir)/$(artifact_name).jar