You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2026/08/26 22:37:38 UTC

(maven) 01/01: chore: simplify integration-tests CI job

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch quick-fix/simplify-it-workflow
in repository https://gitbox.apache.org/repos/asf/maven.git

commit e10e8c6db45f17c137f73c077dfd770f19088e1d
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Thu Aug 27 00:37:25 2026 +0200

    chore: simplify integration-tests CI job
    
    The run-its profile now handles distribution extraction self-contained
    (since #2476 and #12828), so the integration-tests job no longer needs
    to download, extract, and PATH-inject the built distribution from the
    initial-build artifact. Use the Maven wrapper instead.
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 .github/workflows/maven.yml | 29 +++--------------------------
 1 file changed, 3 insertions(+), 26 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index e9bddae217..73361a4aa9 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -291,36 +291,13 @@ jobs:
             master-${{ runner.os }}-
             master-
 
-      - name: Download Maven distribution
-        uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
-        with:
-          name: maven-distributions
-          path: maven-dist
-
-      - name: List downloaded files
-        shell: bash
-        run: ls -la maven-dist
-
-      - name: Extract Maven distribution
+      - name: Set up Maven
         shell: bash
-        run: |
-          mkdir -p maven-local
-          if [ "${{ runner.os }}" = "Windows" ]; then
-            unzip maven-dist/apache-maven-*-bin.zip -d maven-local
-            # Get the name of the extracted directory
-            MAVEN_DIR=$(ls maven-local)
-            # Move contents up one level
-            mv "maven-local/$MAVEN_DIR"/* maven-local/
-            rm -r "maven-local/$MAVEN_DIR"
-          else
-            tar xzf maven-dist/apache-maven-*-bin.tar.gz -C maven-local --strip-components 1
-          fi
-          echo "MAVEN_HOME=$PWD/maven-local" >> $GITHUB_ENV
-          echo "$PWD/maven-local/bin" >> $GITHUB_PATH
+        run: mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.4:wrapper "-Dmaven=4.0.0-rc-6"
 
       - name: Build Maven and ITs and run them
         shell: bash
-        run: mvn install -e -B -V -Prun-its,mimir
+        run: ./mvnw install -e -B -V -Prun-its,mimir
 
       - name: Upload Mimir caches
         uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1