@@ -13,50 +13,36 @@ jobs:
1313    strategy :
1414      fail-fast : false 
1515      matrix :
16-         java : [8, 11] 
16+         java : [7,  8, 11] 
1717
1818    steps :
1919      - uses : actions/checkout@v2 
20-       - name : Setup java 
21-         uses : actions/setup-java@v1 
22-         with :
23-           java-version : ${{ matrix.java }} 
24-       - name : Cache Maven packages 
25-         uses : actions/cache@v2 
26-         with :
27-           path : ~/.m2 
28-           key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} 
29-           restore-keys : ${{ runner.os }}-m2 
30-       - name : Setup Node.js 
31-         uses : actions/setup-node@v1 
32-         with :
33-           node-version : 14.x 
34-       - name : Run the Maven verify phase 
35-         run : mvn verify -Dgpg.skip=true 
3620
37-   verify-java7 :
38-     runs-on : ubuntu-22.04  #  with maven 3.8 (https://github.com/actions/runner-images/blob/ubuntu24/20250105.1/images/ubuntu/Ubuntu2204-Readme.md)
39- 
40-     strategy :
41-       fail-fast : false 
42-       matrix :
43-         java : [ 7 ] 
21+       - name : Install Maven 3.8.x (instead of 3.9.x) 
22+         run : | 
23+           MAVEN_VERSION=3.8.8 
24+           wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz 
25+           tar xzvf apache-maven-$MAVEN_VERSION-bin.tar.gz 
26+           sudo mv apache-maven-$MAVEN_VERSION /opt/maven 
27+           sudo rm -f /usr/bin/mvn  # Remove existing symbolic link if it exists 
28+           sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn  # Create new symbolic link 
4429
45-     steps :
46-       - uses : actions/checkout@v2 
4730name : Setup java 
4831        uses : actions/setup-java@v1 
4932        with :
5033          java-version : ${{ matrix.java }} 
34+ 
5135      - name : Cache Maven packages 
5236        uses : actions/cache@v2 
5337        with :
5438          path : ~/.m2 
5539          key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} 
5640          restore-keys : ${{ runner.os }}-m2 
41+ 
5742      - name : Setup Node.js 
5843        uses : actions/setup-node@v1 
5944        with :
6045          node-version : 14.x 
46+ 
6147      - name : Run the Maven verify phase 
6248        run : mvn verify -Dgpg.skip=true 
0 commit comments