Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/clarify configuring maven version #6409

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions building/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down