Skip to content

Commit 7e6253e

Browse files
committed
Bust Maven cache in debug workflow
Previous run restored a cached ~/.m2/repository, so central-publishing-maven-plugin was served from cache and the build got past startup (failing later at gpg:sign, masked). Without a cache, Maven is forced to resolve -Prelease plugins through the JFrog mirror fresh each run, which is the exact failure mode we want to show JFrog. Co-authored-by: Isaac
1 parent 5d5519a commit 7e6253e

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/debug-prelease.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ jobs:
2323
- name: Checkout
2424
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
2525

26-
- name: Cache Maven packages
27-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
28-
with:
29-
path: ~/.m2/repository
30-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
31-
restore-keys: ${{ runner.os }}-m2
26+
# No Maven cache on purpose. A cache hit masks the JFrog resolution
27+
# failure: the central-publishing-maven-plugin gets restored from a
28+
# previous run instead of being fetched fresh through the mirror.
3229

3330
- name: Setup JFrog CLI with OIDC
3431
id: jfrog

0 commit comments

Comments
 (0)