Skip to content
This action setup maven environment for use in action
JavaScript
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
templates fix xpath Oct 1, 2019
.eslintrc.json init commit Oct 1, 2019
.gitignore init commit Oct 1, 2019
LICENSE init commit Oct 1, 2019
README.md
action.yml create github server in settings Feb 22, 2020
cleanup.js cleanup and overide Jan 23, 2020
cleanup.test.js
index.js cleanup and overide Jan 23, 2020
index.test.js
package-lock.json Bump jest from 25.1.0 to 25.2.3 Mar 27, 2020
package.json Bump jest from 25.1.0 to 25.2.3 Mar 27, 2020
settings.js
settings.test.js

README.md

maven-settings-action

Test Audit

This action setup maven environment for use in action by:

  • create maven settings.xml
  • set interactiveMode to 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 ⭐️ - if you want to encourage me to work on a project
  • Don't hesitate create issue for new feature you dream of or if you suspect some bug

Project versioning

Project use 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.

Usage

See action.yml

Create default settings.xml:

steps:
- uses: s4u/maven-settings-action@v2

Create settings.xml with server section:

steps:
- uses: s4u/maven-settings-action@v2
  with:
    servers: '[{"id": "serverId", "username": "username", "password": "password"}]'

Create settings.xml with maven properties:

steps:
- uses: s4u/maven-settings-action@v2
  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
  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
  with:
    override: false

Do not add github to server in settings.xml, by default is added:

steps:
- uses: s4u/maven-settings-action@v2
  with:
    githubServer: false

License

The scripts and documentation in this project are released under the MIT License

You can’t perform that action at this time.