From 2c8af3763579dc23763b8457355ad0817d26d96f Mon Sep 17 00:00:00 2001 From: Emmanuel Bruno Date: Wed, 23 Sep 2026 22:44:31 +0200 Subject: [PATCH] refactor: remove SDKMAN dependency, use system mvn + Maven Wrapper The runner image now has Maven pre-installed (pinned, sha256-verified). This removes the SDKMAN source line from all steps: - 'Setup Maven Wrapper': uses system mvn (from runner image) - All build/deploy/quality steps: use ./mvnw (Maven Wrapper) Requires: runner image with Maven on PATH (see ebpro/quarkus-ci-runner) --- .github/workflows/ci-shareable-maven.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-shareable-maven.yml b/.github/workflows/ci-shareable-maven.yml index b4df0f7..f587347 100644 --- a/.github/workflows/ci-shareable-maven.yml +++ b/.github/workflows/ci-shareable-maven.yml @@ -174,7 +174,7 @@ jobs: # Setup maven version as a wrapper - name: Setup Maven Wrapper run: | - source "/home/runner/.sdkman/bin/sdkman-init.sh" && mvn ${{ inputs.maven-args }} wrapper:wrapper \ + mvn ${{ inputs.maven-args }} wrapper:wrapper \ -Dmaven="${{ matrix.maven }}" - name: Extract branch name @@ -184,7 +184,7 @@ jobs: # Build and test - name: Build and Test with Maven run: | - source "/home/runner/.sdkman/bin/sdkman-init.sh" && ./mvnw ${{ inputs.maven-args }} ${{ inputs.verify-goal }} + ./mvnw ${{ inputs.maven-args }} ${{ inputs.verify-goal }} # Check quality with SonarQube ### THIS STEP MUST BE ENABLED BY CONFIGURING: @@ -192,7 +192,7 @@ jobs: - name: Quality check with Sonarqube if: ${{ (inputs.quality-goal-run == 'true') && (env.SONAR_URL != null) && (env.SONAR_TOKEN != null) }} run: | - source "/home/runner/.sdkman/bin/sdkman-init.sh" && ./mvnw ${{ inputs.maven-args }} ${{ inputs.quality-goal }} + ./mvnw ${{ inputs.maven-args }} ${{ inputs.quality-goal }} # Stage artifact to github - name: Build artifacts archive @@ -209,11 +209,11 @@ jobs: - name: Deploy develop artefact if: ${{ inputs.deploy-goal-run == 'true' && (github.ref_name != 'master') }} run: | - source "/home/runner/.sdkman/bin/sdkman-init.sh" && ./mvnw ${{ inputs.maven-args }} ${{ inputs.deploy-goal-develop }} deploy + ./mvnw ${{ inputs.maven-args }} ${{ inputs.deploy-goal-develop }} deploy - name: Deploy release artefact if: ${{ inputs.deploy-goal-run == 'true' && (github.ref_name == 'master') }} run: | - source "/home/runner/.sdkman/bin/sdkman-init.sh" && ./mvnw ${{ inputs.maven-args }} ${{ inputs.deploy-goal-release }} deploy + ./mvnw ${{ inputs.maven-args }} ${{ inputs.deploy-goal-release }} deploy ## Build and deploy project site - name: Load SSH Key in agent @@ -226,4 +226,4 @@ jobs: run: | mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts ssh-keyscan github.com >> ~/.ssh/known_hosts - source "/home/runner/.sdkman/bin/sdkman-init.sh" && ./mvnw ${{ inputs.maven-args }} ${{ inputs.site-goal }} + ./mvnw ${{ inputs.maven-args }} ${{ inputs.site-goal }}