Skip to content

Commit

Permalink
Use Maven Wrapper to build
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jun 3, 2024
1 parent 40448e7 commit e7ca068
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/maven_build_itself.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e7ca068

Please sign in to comment.