File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ MAVEN_HOME=$( ./jdk-wrapper.sh ./mvnw -v | awk ' /^Maven home:/ { print $3 }' )
3
+ if [ -d " $MAVEN_HOME " ]; then
4
+ echo " Installing custom wagon-http jar to $MAVEN_HOME /lib"
5
+ ls -l " $MAVEN_HOME /lib/" wagon-http-* -shaded.jar
6
+ rm " $MAVEN_HOME /lib/" wagon-http-* -shaded.jar
7
+ cp ./.github/wagon-http-* " $MAVEN_HOME /lib/"
8
+ ls -l " $MAVEN_HOME /lib/" wagon-http-* -shaded.jar
9
+ else
10
+ echo " Unable to fix Maven!"
11
+ fi
Original file line number Diff line number Diff line change 27
27
path : ~/.m2
28
28
key : ${{ runner.os }}-m2-${{ hashFiles('pom.xml') }}
29
29
restore-keys : ${{ runner.os }}-m2-
30
+ # The Maven fix involves replacing an artifact that is in the cache directory;
31
+ # consequently the fix gets cached. The problem arises when we need to remove
32
+ # the fix that we need to do so in a way that keeps the cache from regressing.
33
+ # The easiest way is to change the cache key when deprecating the fix.
34
+ - name : Fix Maven
35
+ run : ./.github/fix-maven.sh
30
36
- name : Build Only
31
37
if : startsWith(github.ref, 'refs/tags/metrics-aggregator-daemon-') != true
32
38
run : ./jdk-wrapper.sh ./mvnw clean verify -P rpm -U -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
You can’t perform that action at this time.
0 commit comments