-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support for "no snapshot updates" flag #411
Comments
When using pax-url-aether programmatically, we can set (in Karaf - Let me have a look after log4j Armageddon is over. |
This issue is related to both Aaether and PAX-URL. Currently configuration handling rely on maven settings which can specify repositories and basic offline option. However maven resolver, when used at runtime, can also accept additional options such as
no-snapshot-updates (nsu)
andforce-snapshot-updates (U)
. These two are relevant from build performance but also reliability as they allow to confirm if maven build is consistent with local repository. From my experience so far pax-url does not have such options resulting in snapshot checks after every midnight.This trouble is easily observable with build containing few snapshots which gets executed after midnight with
-o -nsu
flags. Maven does not attempt to update snapshot metadadata, but when Karaf feature verification starts the resolver start to spin requests and in the end waste a bunch of time just to refresh filesystem contents with remote metadata. I believe above options are relevant to resolver sessions which can be changing depending on the call context. The resolver sessions are much easier to manage with Maven which has non-continuous execution nature, I guess it is harder for server runtimes.The text was updated successfully, but these errors were encountered: