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

Support for "no snapshot updates" flag #411

Open
splatch opened this issue Feb 8, 2022 · 1 comment
Open

Support for "no snapshot updates" flag #411

splatch opened this issue Feb 8, 2022 · 1 comment
Assignees
Labels

Comments

@splatch
Copy link
Member

splatch commented Feb 8, 2022

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) and force-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.

@splatch splatch added the type: new feature New Feature label Feb 8, 2022
@grgrzybek
Copy link
Member

When using pax-url-aether programmatically, we can set (in Karaf - org.ops4j.pax.url.mvn.globalUpdatePolicy in org.ops4j.pax.url.mvn PID), however I agree there's no automatic configuration of this property by karaf-maven-plugin.
Also, I remember that sometimes (always?) there's a conflict between org.ops4j.pax.url.mvn.globalUpdatePolicy and update/snapshotsUpdate set in repository URI.

Let me have a look after log4j Armageddon is over.

@grgrzybek grgrzybek self-assigned this Feb 9, 2022
@grgrzybek grgrzybek added this to the 2.6.12 milestone Feb 9, 2022
@jbonofre jbonofre modified the milestones: 2.6.12, 2.6.13 Oct 12, 2022
@grgrzybek grgrzybek removed this from the 2.6.13 milestone Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants