Cache Maven artifacts to reduce the incidence of plugin resolution failure.

This commit is contained in:
Jon Chambers 2021-02-23 11:58:25 -05:00 committed by Jon Chambers
parent 4a0a0e10d2
commit 5951ead1b6
1 changed files with 8 additions and 1 deletions

View File

@ -12,5 +12,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -e -B package
run: mvn -e -B package