Add skjolber/maven-cache-github-action; remove -U from mvn

This commit is contained in:
Darin Kelkhoff
2021-10-27 22:03:50 -05:00
parent 7b625fdf78
commit 99c924eba5

View File

@ -24,6 +24,10 @@ jobs:
java-version: '17' java-version: '17'
distribution: 'adopt' distribution: 'adopt'
cache: maven cache: maven
- name: Restore Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- name: maven-settings-action - name: maven-settings-action
uses: s4u/maven-settings-action@v2.4.1 uses: s4u/maven-settings-action@v2.4.1
with: with:
@ -36,4 +40,8 @@ jobs:
- name: Cat settings.xml - name: Cat settings.xml
run: cat /home/runner/.m2/settings.xml run: cat /home/runner/.m2/settings.xml
- name: Build with Maven - name: Build with Maven
run: mvn -U -B package --file pom.xml run: mvn -B package --file pom.xml
- name: Save Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: save