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

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new e7ca0684cc Use Maven Wrapper to build
e7ca0684cc is described below

commit e7ca0684ccc36294d107c762d10fd882faef9545
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 85642e90fc..10958257e2 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 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

Reply via email to