mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-15 00:00:30 +08:00
8a73d2812be708e5e1d7ac79b508e6f6beb38621
Bumps [xmldom](https://github.com/xmldom/xmldom) from 0.2.1 to 0.3.0. - [Release notes](https://github.com/xmldom/xmldom/releases) - [Changelog](https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md) - [Commits](https://github.com/xmldom/xmldom/compare/0.2.1...0.3.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
maven-settings-action
This action setup maven environment for use in action by:
- create maven settings.xml
- set
interactiveModeto false - useful in CI system - after job finish generated settings.xml will be removed to prevent cache or left sensitive data on build system
- add server to servers with id=github, username=$GITHUB_ACTOR and password=$GITHUB_TOKEN
Contributions
- Contributions are welcome!
- Give a star - if you want to encourage me to work on a project
- Don't hesitate create issue
Usage
See action.yml
Create default settings.xml:
steps:
- uses: s4u/maven-settings-action@v2.0
Create settings.xml with server section:
steps:
- uses: s4u/maven-settings-action@v2.0
with:
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
Create settings.xml with maven properties:
steps:
- uses: s4u/maven-settings-action@v2.0
with:
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
Create settings.xml with https://oss.sonatype.org/content/repositories/snapshots in repository list
steps:
- uses: s4u/maven-settings-action@v2.0
with:
sonatypeSnapshots: true
Do not override existing settings.xml, from version 2.0 file is override by default :
steps:
- uses: s4u/maven-settings-action@v2.0
with:
override: false
Do not add github to server in settings.xml, by default is added:
steps:
- uses: s4u/maven-settings-action@v2.0
with:
githubServer: false
License
The scripts and documentation in this project are released under the MIT License
Languages
JavaScript
99.5%
Shell
0.5%