Skip to content

Commit 4d0cf1f

Browse files
committed
Use MVN wrapper in Makefile
This avoids having to install Maven manually & allows using a fixed version of Maven.
1 parent 06ba13a commit 4d0cf1f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
### CONFIG ###
22
#
3-
export PATH :=$(CURDIR)/scripts:$(PATH)
3+
export PATH :=$(CURDIR):$(CURDIR)/scripts:$(PATH)
44

55
### TARGETS ###
66
#
77
default: run
88

99
binary: clean ## Build the binary distribution
10-
@mvn package -P assemblies -Dgpg.skip=true
10+
@mvnw package -P assemblies -Dgpg.skip=true
1111

1212
help:
1313
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
1414

1515
clean: ## Clean all build artefacts
16-
@mvn clean
16+
@mvnw clean
1717

1818
compile: ## Compile the source code
19-
@mvn compile
19+
@mvnw compile
2020

2121
jar: clean ## Build the JAR file
22-
@mvn package
22+
@mvnw package
2323

2424
run: compile ## Run PerfTest, pass exec arguments via ARGS
25-
@mvn exec:java -Dexec.mainClass="com.rabbitmq.perf.PerfTest" -Dexec.args="${ARGS}"
25+
@mvnw exec:java -Dexec.mainClass="com.rabbitmq.perf.PerfTest" -Dexec.args="${ARGS}"
2626

2727
signed-binary: clean ## Build a GPG signed binary
28-
@mvn package -P assemblies
28+
@mvnw package -P assemblies
2929

3030
.PHONY: help run

0 commit comments

Comments
 (0)