Commit 7e4a4ad
Remove _remote.repositories from cache + use offline mode for forked PRs (#1391)
## Summary
Two fixes for forked PR dependency resolution:
1. **Warmer**: Remove `_remote.repositories` marker files before saving
the cache. These files track which repo ID (`jfrog-central`) each
artifact was downloaded from. When forked PRs restore the cache in
offline mode, Maven refuses artifacts because they were "not downloaded
from central".
2. **Fork composite action**: Use Maven offline mode (`-o` via
`.mvn/maven.config`) + empty `settings.xml`. With clean cache (no repo
ID markers), offline mode resolves everything from `~/.m2/repository`
with zero network requests.
Also deleted the existing stale cache entry to force a fresh save.
## Test plan
- [x] Verified locally: `mvn -o` with removed `_remote.repositories` →
BUILD SUCCESS, zero network requests
- [ ] After merge: re-trigger cache warmer, then re-run PR #1371 CI
NO_CHANGELOG=true
This pull request was AI-assisted by Isaac.
---------
Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent c079ed4 commit 7e4a4ad
2 files changed
Lines changed: 31 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
29 | 47 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 48 | + | |
66 | 49 | | |
67 | 50 | | |
68 | | - | |
| 51 | + | |
69 | 52 | | |
70 | 53 | | |
71 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
| |||
0 commit comments