Skip to content

PF-2306 Add Maven composite actions for Maven setup and command - #495

Open
jasaltvik wants to merge 22 commits into
mainfrom
PF-2306-add-maven-composite-actions
Open

jasaltvik wants to merge 22 commits into
mainfrom
PF-2306-add-maven-composite-actions

Conversation

@jasaltvik

@jasaltvik jasaltvik commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR adds two new composite actions:

  • setup-maven-env – sets up JDK, Maven dependency caching and GitHub Packages credentials
  • maven-run – runs Maven goals with support for mono-repos (application-path), multi-module repos (module-name), profiles, snapshot updates and extra arguments

The golden path workflows now use these instead of duplicating the setup and Maven command logic.

Changes since the original PR from Jonas

Behaviour change

Spring Boot builds without module-name now run install spring-boot:build-image (previously spring-boot:build-image), so single-module and multi-module use the same command. No impact on tests or the resulting image.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing caller
    workflows to fail)
  • ♻️ Refactor (code improvement without functional change)
  • 📝 Documentation update

Checklist for Shared Workflows & Actions

  • Documentation: I have added or updated the relevant documentation
    (e.g., usage docs, README.md, or inline workflow or action descriptions) to
    reflect these changes.
  • Input Propagation: If I added new inputs , I have exposed them in
    all relevant proxy workflows or caller templates that rely on this workflow or
    action.
  • Cross-Workflow Relevance: I have checked if this change (or bug fix)
    applies to other shared workflows/actions in this repository and updated them
    if necessary.
  • Testing: I have tested these changes against a caller repository.

Testing Details

plattform-test-app (Spring Boot)

plattform-test-app-quarkus

eudiw-relying-party-register (Spring Boot mono-repo, apps/eudiw-trustlist-service/) – tested in eudi-wallet-no/eudiw-relying-party-register#145

Not tested

  • Multi-module (module-name) - skipped

Before merge

  • Revert the test commit b3c9f91 so all references point to @main
@jasaltvik
jasaltvik requested review from larsbard and oyri August 30, 2026 19:53
@larsbard

larsbard commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Jeg syntes det er en god tanke, og veldig bra det blir godt dokumentert.

@oyri

oyri commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Kanskje litt på grensa å dytte inn mvn:set-version i set-enviroment action. set-version er eigentleg førebuing til å laga ein release... Det er ikkje nødvendig for å f.eks. køyre test på branch.

@larsbard

Copy link
Copy Markdown
Contributor
@brasande
brasande marked this pull request as ready for review November 2, 2026 10:52
@brasande
brasande requested a review from a team as a code owner November 2, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants