Repository navigation
Commit bc6a9b1
Cache Maven wrapper distribution separately from the local repository
The Maven wrapper distribution (~/.m2/wrapper/dists) was cached in the same
entry as the local Maven repository (~/.m2/repository), keyed on a hash of
**/pom.xml (plus wrapper properties and extensions). Because pom.xml changes
frequently and no restoreKeys are used (by design, #269), almost every change
produces a full cache miss and the wrapper distribution is re-downloaded via
mvnw — which intermittently fails due to upstream rate limiting.
The wrapper distribution only depends on maven-wrapper.properties, which
changes very rarely. Give it its own cache entry keyed solely on
**/.mvn/wrapper/maven-wrapper.properties so it survives the frequent pom.xml
changes that rotate the main dependency cache key.
- Add a generic additionalCaches concept to PackageManager, restored and saved
independently with name-scoped state keys.
- Move ~/.m2/wrapper/dists out of the main maven path into a maven-wrapper
additional cache; skip silently when the project does not use mvnw.
- Keep cache-hit / cache-primary-key outputs driven by the main cache.
- Update tests, docs, and rebuild dist bundles.
Fixes #1095
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 174d4b5 commit bc6a9b1
6 files changed
Lines changed: 469 additions & 30 deletions
File tree
- __tests__
- dist
- cleanup
- setup
- docs
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 169 | + | |
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
| |||
196 | 193 | | |
197 | 194 | | |
198 | 195 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 196 | + | |
203 | 197 | | |
204 | 198 | | |
205 | 199 | | |
| |||
214 | 208 | | |
215 | 209 | | |
216 | 210 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 211 | + | |
221 | 212 | | |
222 | 213 | | |
223 | 214 | | |
| |||
226 | 217 | | |
227 | 218 | | |
228 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
229 | 263 | | |
230 | 264 | | |
231 | 265 | | |
| |||
457 | 491 | | |
458 | 492 | | |
459 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
460 | 538 | | |
461 | 539 | | |
462 | 540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99666 | 99666 | | |
99667 | 99667 | | |
99668 | 99668 | | |
99669 | | - | |
99670 | | - | |
99671 | | - | |
99672 | | - | |
| 99669 | + | |
99673 | 99670 | | |
99674 | 99671 | | |
99675 | 99672 | | |
99676 | 99673 | | |
99677 | 99674 | | |
| 99675 | + | |
| 99676 | + | |
| 99677 | + | |
| 99678 | + | |
| 99679 | + | |
| 99680 | + | |
| 99681 | + | |
| 99682 | + | |
| 99683 | + | |
| 99684 | + | |
| 99685 | + | |
99678 | 99686 | | |
99679 | 99687 | | |
99680 | 99688 | | |
| |||
99726 | 99734 | | |
99727 | 99735 | | |
99728 | 99736 | | |
| 99737 | + | |
| 99738 | + | |
| 99739 | + | |
| 99740 | + | |
| 99741 | + | |
| 99742 | + | |
| 99743 | + | |
| 99744 | + | |
| 99745 | + | |
| 99746 | + | |
| 99747 | + | |
| 99748 | + | |
| 99749 | + | |
99729 | 99750 | | |
99730 | 99751 | | |
99731 | 99752 | | |
| |||
99739 | 99760 | | |
99740 | 99761 | | |
99741 | 99762 | | |
99742 | | - | |
| 99763 | + | |
| 99764 | + | |
| 99765 | + | |
| 99766 | + | |
| 99767 | + | |
| 99768 | + | |
| 99769 | + | |
| 99770 | + | |
| 99771 | + | |
| 99772 | + | |
| 99773 | + | |
| 99774 | + | |
| 99775 | + | |
99743 | 99776 | | |
99744 | 99777 | | |
99745 | 99778 | | |
| |||
99763 | 99796 | | |
99764 | 99797 | | |
99765 | 99798 | | |
| 99799 | + | |
| 99800 | + | |
| 99801 | + | |
| 99802 | + | |
| 99803 | + | |
| 99804 | + | |
| 99805 | + | |
| 99806 | + | |
| 99807 | + | |
| 99808 | + | |
| 99809 | + | |
| 99810 | + | |
| 99811 | + | |
| 99812 | + | |
| 99813 | + | |
| 99814 | + | |
| 99815 | + | |
| 99816 | + | |
| 99817 | + | |
| 99818 | + | |
| 99819 | + | |
| 99820 | + | |
| 99821 | + | |
| 99822 | + | |
| 99823 | + | |
| 99824 | + | |
99766 | 99825 | | |
99767 | 99826 | | |
99768 | 99827 | | |
| |||
99773 | 99832 | | |
99774 | 99833 | | |
99775 | 99834 | | |
| 99835 | + | |
| 99836 | + | |
| 99837 | + | |
99776 | 99838 | | |
99777 | 99839 | | |
99778 | 99840 | | |
| |||
99807 | 99869 | | |
99808 | 99870 | | |
99809 | 99871 | | |
| 99872 | + | |
| 99873 | + | |
| 99874 | + | |
| 99875 | + | |
| 99876 | + | |
| 99877 | + | |
| 99878 | + | |
| 99879 | + | |
| 99880 | + | |
| 99881 | + | |
| 99882 | + | |
| 99883 | + | |
| 99884 | + | |
| 99885 | + | |
| 99886 | + | |
| 99887 | + | |
| 99888 | + | |
| 99889 | + | |
| 99890 | + | |
| 99891 | + | |
| 99892 | + | |
| 99893 | + | |
| 99894 | + | |
| 99895 | + | |
| 99896 | + | |
| 99897 | + | |
| 99898 | + | |
| 99899 | + | |
| 99900 | + | |
| 99901 | + | |
| 99902 | + | |
| 99903 | + | |
| 99904 | + | |
| 99905 | + | |
| 99906 | + | |
| 99907 | + | |
| 99908 | + | |
99810 | 99909 | | |
99811 | 99910 | | |
99812 | 99911 | | |
| |||
0 commit comments