From 667fe2749b1f14b4e0d609b404f95e8da37be37b Mon Sep 17 00:00:00 2001 From: Michael Carleton Date: Sat, 27 Jul 2024 11:15:46 +0100 Subject: [PATCH] Update/clarify configuring maven version --- building/_index.en.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/building/_index.en.md b/building/_index.en.md index 880c4f8..9193658 100644 --- a/building/_index.en.md +++ b/building/_index.en.md @@ -56,9 +56,13 @@ mvn install -DskipTests to build and publish Maven projects. Your Maven group id is harvested from the top-level pom and then used to locate the installed artifacts in `~/.m2/repository`. Binary jars, source jars and javadoc can all be picked up from there via the JitPack virtual repository. -If your project requires a specific Maven version then you can use the [Maven Wrapper](https://github.com/takari/maven-wrapper). In that case JitPack will run: +### Maven Version + +If your project requires a specific Maven version then you can use the Maven Wrapper plugin. Modify the `jitpack.yml` file like so: ```sh -./mvnw install -DskipTests +install: + - mvn wrapper:wrapper -Dmaven=3.9.7 + - ./mvnw install -DskipTests ``` ### Example projects