@@ -36,18 +36,19 @@ jobs:
36
36
java-version : 17
37
37
distribution : ' temurin'
38
38
39
+ - name : Checkout maven
40
+ uses : actions/checkout@v4
41
+ with :
42
+ path : maven/
43
+ persist-credentials : false
44
+
39
45
- name : Cache Maven packages
40
46
uses : actions/cache@v4
41
47
with :
42
48
path : ~/.m2/repository/cached
43
49
key : maven-${{ hashFiles('**/pom.xml') }}
44
50
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
51
52
52
53
- name : Set up Maven
53
54
shell : bash
94
95
run : |
95
96
set +e
96
97
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
99
99
100
100
101
101
matrix-build :
@@ -112,18 +112,19 @@ jobs:
112
112
java-version : ${{ matrix.java }}
113
113
distribution : ' temurin'
114
114
115
+ - name : Checkout maven
116
+ uses : actions/checkout@v4
117
+ with :
118
+ path : maven/
119
+ persist-credentials : false
120
+
115
121
- name : Cache Maven packages
116
122
uses : actions/cache@v4
117
123
with :
118
124
path : ~/.m2/repository/cached
119
125
key : maven-${{ hashFiles('**/pom.xml') }}
120
126
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
127
128
128
129
- name : Set up Maven
129
130
shell : bash
@@ -171,8 +172,7 @@ jobs:
171
172
run : |
172
173
set +e
173
174
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
176
176
177
177
- name : Collect environment context variables
178
178
shell : bash
0 commit comments