Skip to content

Bug: 5762 Improve documentation for P2 transport cache and -U option#5817

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/improve-tycho-documentation
Draft

Bug: 5762 Improve documentation for P2 transport cache and -U option#5817
Copilot wants to merge 2 commits intomainfrom
copilot/improve-tycho-documentation

Conversation

Copy link
Contributor

Copilot AI commented Feb 5, 2026

Users are confused about how to force-refresh cached P2 repository data when repositories become available after a previous failure. The relationship between Maven's -U flag and Tycho's P2 transport cache was undocumented.

Changes

SystemProperties.md

  • Added "Cache Behavior and the -U Option" section explaining cache semantics
  • Documented that -U bypasses cache regardless of tycho.p2.transport.min-cache-minutes
  • Updated min-cache-minutes property description to reference -U

Troubleshooting.md

  • Added "Cached Repository Errors" section for the common "No repository found" scenario
  • Documents why 404 responses get cached and how to resolve with -U
  • Links to System Properties for detailed configuration

Example

When a repository was previously unavailable:

# Cache may contain stale 404 response - use -U to force refresh
mvn clean verify -U
Original prompt

TransportCacheConfig has a flag isUpdate. This effectivly maps to isUpdateSnapshots in the maven session and ultimativly to the -U option on maven CLI see https://maven.apache.org/ref/3.6.1/maven-embedder/cli.html
In #5762 it was brough up that this is currently badly documented so its not easy for users to understand the relation and even if we mentioned some of the properties used in the transport here https://tycho.eclipseprojects.io/doc/latest/SystemProperties.html the -U option is kind of magic to the users. Our task now is to review the tycho site doc and improve it at relevant locations to makes such things easier to discover for new users.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Tycho site documentation for clarity on isUpdate Bug: 5762 Improve documentation for P2 transport cache and -U option Feb 5, 2026
Copilot AI requested a review from laeubi February 5, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants