shared-actions/maven-build
2026-04-24 15:57:40 +02:00
..
action.yml refactor: move action to repo root 2026-04-24 15:57:40 +02:00
README.md refactor: move action to repo root 2026-04-24 15:57:40 +02:00

maven-build

Run a Maven build -- verify-only for PRs or package+jib push for deploys.

Inputs

Input Required Default Description
maven-settings Yes Secret containing settings.xml content
java-version No 8 Java version
maven-image No maven:3.8.5-openjdk-8 Maven Docker image
phase No verify Build phase: verify or package-and-push
verify-goals No spotless:check checkstyle:check compile Goals for the verify phase
maven-profile No test Maven profile used during package-and-push
service-dir No . Working directory containing the POM
skip-tests No false Pass -DskipTests
image-tag No ${{ github.sha }}-${{ github.run_id }} Docker image tag for jib
extra-args No Additional Maven CLI arguments

Usage

- uses: schmalz/shared-actions/.github/actions/maven-build@v1
  with:
    maven-settings: ${{ secrets.MAVEN_SETTINGS }}
    phase: package-and-push

Notes

  • Maven repository cache is restored/saved automatically using pom.xml hash.
  • The settings.xml is written to a temp file and cleaned up after the build.