From 873a10789847892149be14b3065839f8624590e9 Mon Sep 17 00:00:00 2001 From: Swapnil <78632212+swapnilpaliwal-sd@users.noreply.github.com> Date: Wed, 18 Nov 2026 21:17:26 -0800 Subject: [PATCH] ci: fetch Vineflower by the plugin's coordinates, and try a failed fetch again `mvn dependency:get` resolves the `dependency` prefix from Maven Central's plugin-group metadata. When that read fails, Maven stops with "No plugin found for prefix 'dependency'" and the Java engine job fails before a test runs. It happened on the pull request that merged 0.2.4 into dev, on the first run and on the rerun, while the push of the same commit passed. The step now names maven-dependency-plugin 3.11.0 in full, so no prefix lookup takes place, and tries the download up to three times. --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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