diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index fe3e97e586f9..3fac1f6d4f9c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -281,36 +281,13 @@ jobs: mvn40-${{ runner.os }}- mvn40- - - 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 diff --git a/its/core-it-suite/pom.xml b/its/core-it-suite/pom.xml index 135cb030ac3a..d7bcf7d89e54 100644 --- a/its/core-it-suite/pom.xml +++ b/its/core-it-suite/pom.xml @@ -606,6 +606,9 @@ under the License. run-its + + ${project.build.directory}/apache-maven + org.apache.maven @@ -613,6 +616,13 @@ under the License. ${maven-version} bin zip + + + + * + * + + @@ -636,6 +646,54 @@ under the License. false + + org.apache.maven.plugins + maven-dependency-plugin + + + download-maven-distro + + copy + + process-test-resources + + + + org.apache.maven + apache-maven + ${maven-version} + bin + zip + maven-bin.zip + + + ${project.build.directory} + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + unpack-maven-distro + + run + + process-test-resources + + + + + + + + + + + +