From 6be74bd55944290105852526c84d409729b7e0c4 Mon Sep 17 00:00:00 2001 From: Philippe Charles Date: Thu, 21 Sep 2023 10:52:24 +0200 Subject: [PATCH] Pre-download dependencies with Maven --- .github/workflows/java8-maven.yml | 3 +++ pom.xml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/java8-maven.yml b/.github/workflows/java8-maven.yml index 40a33f1..d4c924e 100644 --- a/.github/workflows/java8-maven.yml +++ b/.github/workflows/java8-maven.yml @@ -28,6 +28,9 @@ jobs: java-version: ${{ matrix.java }} cache: 'maven' + - name: Pre-download dependencies with Maven + run: mvn -U -B -ntp dependency:go-offline + - name: Build and (headless) test with Maven uses: smithki/xvfb-action@v1.1.2 with: diff --git a/pom.xml b/pom.xml index 74cd7bd..f19c5bc 100644 --- a/pom.xml +++ b/pom.xml @@ -118,6 +118,11 @@ 3.1.2 + + org.apache.maven.plugins + maven-dependency-plugin + 3.6.0 + org.apache.maven.plugins maven-shade-plugin