This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch build-with-wrapper in repository https://gitbox.apache.org/repos/asf/maven.git
commit ef018291b3951f39760e990cdf727375cd39e423 Author: Slawomir Jaranowski <s.jaranow...@gmail.com> AuthorDate: Sat Jun 1 20:26:24 2024 +0200 Use Maven Wrapper to build --- .github/workflows/maven.yml | 14 +++++++++++--- .github/workflows/maven_build_itself.yml | 8 ++++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 503cebff4c..5dec6ffc37 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -46,8 +46,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 @@ -118,12 +122,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 c201b11ea4..0c3fb4c49a 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