Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "no-refetch-timeout" for StoragePolicy.PRIORITIZE_UPSTREAM_METADATA #2018

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

mkrueger92
Copy link
Contributor

This commit adds an option to define a timeout until no re-fetch of maven-metadata.xml is done.

This gives the possibility to use the local copy until the defined period is over. Especially on connections with "huge" delays this setting improves build times and still has a deprecation mechanism for maven-metadata.xml content.

The default value is 0 seconds (it fetches the file every time).

This commit adds an option to define a timeout until no re-fetch of
maven-metadata.xml is done.

This gives the possibility to use the local copy until the defined
period is over. Especially on connections with "huge" delays this
setting improves build times and still has a deprecation mechanism
for maven-metadata.xml content.

The default value is 0 seconds (it fetches the file every time).
@dzikoysk dzikoysk added the enhancement Improvement of existing feature request label Jan 10, 2024
@dzikoysk
Copy link
Owner

Thanks! It makes sense, so I'd like to merge this today (3.5.3). I refactored it a bit on my own to save some time for both of us :)

@dzikoysk dzikoysk merged commit e334afa into dzikoysk:main Jan 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants