diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 85642e90fcb8..10958257e231 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -49,8 +49,12 @@ jobs: distribution: 'temurin' cache: 'maven' + - name: Set up Maven + run: + mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.7" + - name: Build with Maven - run: mvn verify -e -B -V -DdistributionFileName=apache-maven + run: ./mvnw verify -e -B -V -DdistributionFileName=apache-maven - name: Upload built Maven uses: actions/upload-artifact@v4 @@ -121,12 +125,16 @@ jobs: path: maven/ persist-credentials: false + - name: Set up Maven + run: + mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.7" + - name: Build Maven - run: mvn install -e -B -V -DdistributionFileName=apache-maven -DskipTests -f maven/pom.xml + run: ./mvnw install -e -B -V -DdistributionFileName=apache-maven -DskipTests -f maven/pom.xml - name: Running integration tests shell: bash - run: mvn install -e -B -V -Prun-its,embedded -DmavenDistro="$GITHUB_WORKSPACE/maven/apache-maven/target/apache-maven-bin.zip" -f maven-integration-testing/pom.xml + run: ./mvnw install -e -B -V -Prun-its,embedded -DmavenDistro="$GITHUB_WORKSPACE/maven/apache-maven/target/apache-maven-bin.zip" -f maven-integration-testing/pom.xml - name: Upload artifact on integration testing uses: actions/upload-artifact@v4 diff --git a/.github/workflows/maven_build_itself.yml b/.github/workflows/maven_build_itself.yml index c201b11ea453..0c3fb4c49a87 100644 --- a/.github/workflows/maven_build_itself.yml +++ b/.github/workflows/maven_build_itself.yml @@ -47,8 +47,12 @@ jobs: distribution: 'temurin' cache: 'maven' + - name: Set up Maven + run: + mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.7" + - name: Build with Maven - run: mvn install -e -B -V -DdistributionFileName=apache-maven + run: ./mvnw install -e -B -V -DdistributionFileName=apache-maven - name: Extract tarball shell: bash @@ -73,7 +77,7 @@ jobs: TAR_BALL: apache-maven/target/apache-maven-bin.tar.gz - name: Clean with Maven - run: mvn clean + run: ./mvnw -e -B -V clean - name: Build again with Maven SNAPSHOT shell: bash