Skip to content

JActions/maven-version

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JActions

License

Simple GitHub Action for getting Maven version.

Usage

Basic

Simply add the following to your workflow:

steps:
- id: get-version
  uses: jactions/maven-version@v1

This will output version string accessible via ${{ steps.get-version.outputs.version }}.

You can use any valid identifier instead of get-version.

Customizing Maven POM path

By default, the action uses Maven's default POM file location. This can be overridden via pom input which is equivalent to providing --file parameter to Maven executable:

steps:
- id: get-version
  uses: jactions/maven-version@v1
  with:
    pom: ./custom/path/to/pom.xml

Customizing Maven Settings path

By default, the action used Maven's defaults for its settings file. This can be overridden via settings input which is equivalent to providing --settings parameter to Maven executable:

steps:
- id: get-version
  uses: jactions/maven-version@v1
  with:
    settings: ./custom/path/to/settings.xml

License

The project is licensed under MIT license.