Commit c079ed4
Fix fork Maven config: set updatePolicy=never to prevent 401 on cached artifacts (#1389)
## Summary
Even with artifacts in the local cache (~350MB restored successfully),
Maven checks the remote repository for POM metadata updates. For forked
PRs the JFrog mirror has no credentials, so these update checks get 401
errors — causing `maven-toolchains-plugin:3.2.0` resolution to fail even
though the JAR is cached.
Fix: for forked PRs only, configure repository and pluginRepository with
`updatePolicy=never` in an active profile. This tells Maven to use
cached artifacts without contacting the remote for updates. The non-fork
path (JFrog OIDC with full credentials) is unchanged.
## Test plan
- [ ] Re-run PR #1371 CI after merge — toolchains plugin should resolve
from cache without 401
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 c2282cd commit c079ed4
1 file changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 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 | + | |
42 | 65 | | |
43 | 66 | | |
44 | 67 | | |
| |||
0 commit comments