2019-10-01 22:14:15 +02:00
|
|
|
# maven-settings-action
|
2019-10-03 12:09:39 +02:00
|
|
|
[](https://github.com/s4u/maven-settings-action/actions)
|
2019-10-01 22:14:15 +02:00
|
|
|
|
|
|
|
|
This action setup maven environment for use in action by:
|
2019-11-25 11:35:57 +01:00
|
|
|
- create maven settings.xml
|
2019-10-01 22:14:15 +02:00
|
|
|
- set ```interactiveMode``` to false - useful in CI system
|
|
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
See [action.yml](action.yml)
|
|
|
|
|
|
2019-11-25 11:35:57 +01:00
|
|
|
Create default ```settings.xml```:
|
2019-10-01 22:14:15 +02:00
|
|
|
```yml
|
|
|
|
|
steps:
|
|
|
|
|
- uses: s4u/maven-settings-action@v1
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Create ```settings.xml``` with server section:
|
|
|
|
|
```yml
|
|
|
|
|
steps:
|
|
|
|
|
- uses: s4u/maven-settings-action@v1
|
|
|
|
|
with:
|
|
|
|
|
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Create ```settings.xml``` with maven properties:
|
|
|
|
|
```yml
|
|
|
|
|
steps:
|
|
|
|
|
- uses: s4u/maven-settings-action@v1
|
|
|
|
|
with:
|
|
|
|
|
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Create ```settings.xml``` with https://oss.sonatype.org/content/repositories/snapshots in repository list
|
|
|
|
|
```yml
|
|
|
|
|
steps:
|
|
|
|
|
- uses: s4u/maven-settings-action@v1
|
|
|
|
|
with:
|
2019-10-01 23:03:44 +02:00
|
|
|
sonatypeSnapshots: true
|
2019-10-01 22:14:15 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
|
|
|
|
|
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
|
|
|
|
|
|
|
|
|
# Contributions
|
|
|
|
|
|
|
|
|
|
Contributions are welcome!
|