Skip to content

Commit bb85a26

Browse files
committed
Fixes
1 parent b16caef commit bb85a26

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/maven.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,19 @@ jobs:
3636
java-version: 17
3737
distribution: 'temurin'
3838

39+
- name: Checkout maven
40+
uses: actions/checkout@v4
41+
with:
42+
path: maven/
43+
persist-credentials: false
44+
3945
- name: Cache Maven packages
4046
uses: actions/cache@v4
4147
with:
4248
path: ~/.m2/repository/cached
4349
key: maven-${{ hashFiles('**/pom.xml') }}
4450
restore-keys: maven-
45-
46-
- name: Checkout maven
47-
uses: actions/checkout@v4
48-
with:
49-
path: maven/
50-
persist-credentials: false
51+
enableCrossOsArchive: true
5152

5253
- name: Set up Maven
5354
shell: bash
@@ -94,8 +95,7 @@ jobs:
9495
run: |
9596
set +e
9697
export PATH=${{ env.TEMP_MAVEN_BIN_DIR }}:$PATH
97-
mvn clean -e -B -V
98-
mvn -f maven verify site -e -B -V -DdistributionFileName=apache-maven -Preporting
98+
mvn clean verify site -e -B -V -DdistributionFileName=apache-maven -Preporting
9999
100100
101101
matrix-build:
@@ -112,18 +112,19 @@ jobs:
112112
java-version: ${{ matrix.java }}
113113
distribution: 'temurin'
114114

115+
- name: Checkout maven
116+
uses: actions/checkout@v4
117+
with:
118+
path: maven/
119+
persist-credentials: false
120+
115121
- name: Cache Maven packages
116122
uses: actions/cache@v4
117123
with:
118124
path: ~/.m2/repository/cached
119125
key: maven-${{ hashFiles('**/pom.xml') }}
120126
restore-keys: maven-
121-
122-
- name: Checkout maven
123-
uses: actions/checkout@v4
124-
with:
125-
path: maven/
126-
persist-credentials: false
127+
enableCrossOsArchive: true
127128

128129
- name: Set up Maven
129130
shell: bash
@@ -171,8 +172,7 @@ jobs:
171172
run: |
172173
set +e
173174
export PATH=${{ env.TEMP_MAVEN_BIN_DIR }}:$PATH
174-
mvn clean -e -B -V
175-
mvn -f maven verify site -e -B -V -DdistributionFileName=apache-maven -Preporting
175+
mvn clean verify site -e -B -V -DdistributionFileName=apache-maven -Preporting
176176
177177
- name: Collect environment context variables
178178
shell: bash

0 commit comments

Comments
 (0)