Maven Reset Dependencies #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will reset the Maven dependencies for a Java project with Maven | |
name: Maven Reset Dependencies | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
check-latest: true | |
- name: Delete JONLD repository files | |
run: rm -rf ~/.m2/repository/com/github/jsonld-java/* | |
- name: Reset Maven Dependencies | |
run: mvn dependency:purge-local-repository | |
- name: Reload Maven Dependencies | |
run: mvn clean install:install -U | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml |