s4u/Setup Maven Action
Complete environment configuration for Maven builds
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| checkout-enabled | Enable checkout | no | true |
| checkout-fetch-depth | Number of commits to fetch | no | — |
| checkout-submodules | Whether to fetch submodules | no | — |
| checkout-path | Relative path under $GITHUB_WORKSPACE to place the repository | no | — |
| checkout-persist-credentials | Whether to configure the token or SSH key with the local git config | no | false |
| checkout-ref | The branch, tag, or SHA of the repository to clone | no | — |
| checkout-repository | The repository to checkout if not the repository that triggered the action. For use when building GitHub Apps | no | ${{ github.repository }} |
| checkout-token | Token to use for checkout if checking out a repository out of scope for GITHUB_TOKEN | no | ${{ github.token }} |
| checkout-ssh-key | SSH key used to fetch the repository. It allows to run authenticated git commands | no | — |
| java-version | The Java version to set up | yes | 17 |
| java-distribution | Java distribution | no | zulu |
| java-jdkFile | Java JDK compressed file location | no | — |
| cache-enabled | Enable cache | no | true |
| cache-prefix | Cache key prefix | no | — |
| cache-path | Cache path | no | ~/.m2/repository |
| cache-path-add | Additional item for cache path | no | — |
| maven-version | The Maven version to set up | no | 3.9.14 |
| settings-servers | servers definition in json array, e.g.: [{"id": "serverId", "username": "username", "password": "password"}] | no | — |
| settings-mirrors | mirrors definition in json array, e.g.: [{"id": "id", "name": "name", "mirrorOf": "mirrorOf", "url": "url"}] | no | — |
| settings-properties | json array with properties, e.g.: [{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}] | no | — |
| settings-sonatypeSnapshots | add https://oss.sonatype.org/content/repositories/snapshots to repository list - true or false | no | — |
| settings-proxies | proxies definition in json array, e.g.: [{"id": "http-proxy", "active": "true", "protocol": "http", "host": "host", "port": "port", "nonProxyHosts": "host1|host2"}] | no | — |
| settings-repositories | repository settings definition in json array, e.g.: [ { "id": "repoId","name": "repoName","url": "url","snapshots": { "enabled": true } } ] | no | — |
| settings-pluginRepositories | plugin repository settings definition in json array, e.g.: [{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}] | no | — |
| settings-githubServer | add to settings.xml servers server-id: github; username=$GITHUB_ACTOR and password=$GITHUB_TOKEN | no | true |
| settings-path | override default path to settings.xml which is $HOME/.m2/settings.xml | no | — |
Outputs
no outputs