Commit a00b908
Fix: normalize _remote.repositories repo ID for offline mode (#1393)
## Summary
Deleting _remote.repositories was not enough — Maven 3.9+ still refused
cached artifacts in offline mode with "has not been downloaded from it
before". The root cause: Maven checks that the artifact was downloaded
from "central" but the _remote.repositories files referenced
"jfrog-central" (the warmer mirror ID).
Fix: in the warmer, sed-replace "jfrog-central" with "central" in all
_remote.repositories files before saving the cache. This makes Maven
offline mode accept cached artifacts as coming from "central" (the
default repo ID).
Verified locally: ALL 5 CI commands pass with replaced repo IDs +
offline mode:
- spotless:check → BUILD SUCCESS
- unit tests → BUILD SUCCESS
- jacoco:report → BUILD SUCCESS
- packaging install → BUILD SUCCESS
- test-compile → BUILD SUCCESS
## After merge
1. Delete stale cache entries
2. Trigger cache warmer
3. 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 5cd14cb commit a00b908
2 files changed
Lines changed: 14 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 30 | + | |
39 | 31 | | |
40 | | - | |
41 | | - | |
| 32 | + | |
| 33 | + | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
| |||
48 | 40 | | |
49 | 41 | | |
50 | 42 | | |
51 | | - | |
| 43 | + | |
52 | 44 | | |
53 | 45 | | |
54 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
0 commit comments