mirror of https://github.com/apache/maven.git
Use Maven Wrapper to build
This commit is contained in:
parent
40448e758b
commit
e7ca0684cc
|
@ -49,8 +49,12 @@ jobs:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: 'maven'
|
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
|
- 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
|
- name: Upload built Maven
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
@ -121,12 +125,16 @@ jobs:
|
||||||
path: maven/
|
path: maven/
|
||||||
persist-credentials: false
|
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
|
- 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
|
- name: Running integration tests
|
||||||
shell: bash
|
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
|
- name: Upload artifact on integration testing
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
@ -47,8 +47,12 @@ jobs:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: 'maven'
|
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
|
- 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
|
- name: Extract tarball
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -73,7 +77,7 @@ jobs:
|
||||||
TAR_BALL: apache-maven/target/apache-maven-bin.tar.gz
|
TAR_BALL: apache-maven/target/apache-maven-bin.tar.gz
|
||||||
|
|
||||||
- name: Clean with Maven
|
- name: Clean with Maven
|
||||||
run: mvn clean
|
run: ./mvnw -e -B -V clean
|
||||||
|
|
||||||
- name: Build again with Maven SNAPSHOT
|
- name: Build again with Maven SNAPSHOT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in New Issue