Skip to content

Commit

Permalink
Merge pull request #37 from companieshouse/maven-version-plugin-fix
Browse files Browse the repository at this point in the history
Fix build issues around maven version plugin
  • Loading branch information
markpit authored Nov 14, 2024
2 parents 8d69060 + c6c6594 commit 68cc2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 68cc2c5

Please sign in to comment.