mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-14 00:03:08 +08:00
c4b852957d2c50ede14db6392b3da5375f8b4a8e
Setup Maven with settings.xml
This is composite action which help to prepare GitHub Actions environment for Maven build by calling:
Contributions
- Contributions are welcome!
- Give ⭐ - if you want to encourage me to work on a project
- Don't hesitate to create issues for new features you dream of or if you suspect some bug
Project versioning
This project uses Semantic Versioning. We recommended to use the latest and specific release version.
In order to keep your project dependencies up to date you can watch this repository (Releases only) or use automatic tools like Dependabot.
Params mapping for sub actions
setup-java
| params | destination | default |
|---|---|---|
| java-version | java-version | |
| java-distribution | distribution | temurin |
| java-cache | cache |
setup-maven
| params | destination | default |
|---|---|---|
| maven-version | maven-version | 3.8.1 |
maven-settings-action
| params | destination |
|---|---|
| settings-servers | servers |
| settings-mirrors | mirrors |
| settings-properties | properties |
| settings-sonatypeSnapshots | sonatypeSnapshots |
Testing against different Maven versions
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
maven: [ '3.5.4', '3.6.3', '3.8.2' ]
name: Maven ${{ matrix.maven }} sample
steps:
- uses: actions/checkout@v2
- name: Setup Maven
uses: setup-maven@v1.0.0
with:
java-version: 8
maven-version: ${{ matrix.maven }}
- run: mvn -V ...
License
The scripts and documentation in this project are released under the MIT License