lfreleng-actions/☕️ Build Maven Project

Setup Maven and build the Java project

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 8, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/maven-build-action@c2ded37cb11ff1c2bb1eb7df7011906ddf97bd58 # v0.2.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
global-settingsMaven global settings fileno
path_prefixDirectory location containing project codeno.
java-versionOpenJDK versionno21
setup-javaEnable or disable Java setupnotrue
distributionOpenJDK distributionnotemurin
mvn-versionMaven versionno3.9.11
mvn-paramsMaven parameters to pass to the mvn commandno
mvn-phasesComma separated list of phases to executenoclean deploy
mvn-optsMaven optionsno-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
mvn-pom-filePath to pom.xml filenopom.xml
mvn-profilesComma-delimited list of profiles to activateno
env-varsPass GitHub variables to be exported as environment variables via `toJSON(vars)` or specific variables encoded in JSON formatno{}
env-secretsPass GitHub secrets to be exported as environment variables via `toJSON(secrets)` or specific secrets encoded in JSON formatno{}
run-jacocoBoolean defining whether JaCoCo should be runnotrue
artifact-uploadUpload the JaCoCo badges directory as a build artifactnotrue
artifact-nameUploaded artifact name (default: maven-build-<job>)no""
namedescription
m2repo_pathAbsolute path to the Maven file deployment repository (m2repo) produced by the build, for downstream publish/stage actions
m2repo_existsWhether the build produced the m2repo (true/false)
artifact_countNumber of jar/pom/war files found in the m2repo
coverageJaCoCo line coverage % (empty when JaCoCo skipped)
branch_coverageJaCoCo branch coverage percentage (empty when JaCoCo did not run)
artifact_nameName of the uploaded JaCoCo badges artifact (empty when artifact upload is disabled)