diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69b6d331c..7c8508dd3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -378,9 +378,20 @@ jobs: run: dotnet build -c Release graph/test/csharp/ground-truth/AxiomCsOracle # `--library auto` decompiles a dependency that ships no sources jar; the Java query case for it needs Vineflower + # The plugin is named by its coordinates, not by the `dependency:` prefix: the prefix is + # looked up in Maven Central's plugin-group metadata, and when that read fails Maven says + # "No plugin found for prefix 'dependency'" though nothing is wrong with the build. + # A failed download is tried twice more before the job gives up. - name: fetch the decompiler `--library auto` uses for Java class jars if: matrix.lang == 'java' - run: mvn -q dependency:get -Dartifact=org.vineflower:vineflower:1.10.1 + run: | + for attempt in 1 2 3; do + mvn -q org.apache.maven.plugins:maven-dependency-plugin:3.11.0:get \ + -Dartifact=org.vineflower:vineflower:1.10.1 && exit 0 + echo "::warning::fetching Vineflower failed (attempt $attempt of 3)" + [ "$attempt" -lt 3 ] && sleep $((attempt * 15)) + done + exit 1 # `--library auto` compiles a NuGet package by decompiling it; the query case for it needs the decompiler - name: install the decompiler `--library auto` uses for NuGet packages