Skip to content

Github action for running a generic mvn cmd from a docker image

Notifications You must be signed in to change notification settings

qcastel/github-actions-maven-cmd

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

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github action maven cmd

The GitHub Action for Maven wraps the Maven CLI to enable Maven cmd to be run from a docker image. It uses JDK 11 and help you setting up the settings.xml for your private maven repository

Usage

Maven release

For a simple repo with not much protection and private dependency, you can do:

    - name: Build	
      uses: qcastel/github-actions-maven/actions/maven@master
      with:
        maven-args: "clean install"

If you got a private maven repo to setup in the settings.xml, you can do: Note: we recommend putting those values in your repo secrets.

    - name: Build	
      uses: qcastel/github-actions-maven/actions/maven@master
      with:
        maven-repo-server-id: ${{ secrets.MVN_REPO_PRIVATE_REPO_USER }}
        maven-repo-server-username: ${{ secrets.MVN_REPO_PRIVATE_REPO_USER }}
        maven-repo-server-password: ${{ secrets.MVN_REPO_PRIVATE_REPO_PASSWORD }}
        maven-args: "clean install"

We welcome contributions! If your usecase is slightly different than us, just suggest a RFE or contribute to this repo directly.

License

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

About

Github action for running a generic mvn cmd from a docker image

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published