-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add an unconditional ns
version range filter to filter out all snapshots
#2566
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
Conversation
Adding two unconditional ones: ns and nr.
Filtering snapshot results does not address #2558, because snapshot repositories are still queried for maven-metadata.xml before the filtering is done. In order to address #2558, the snapshot-only repos need to be filtered out before the metadata is retrieved, with "guilty knowledge" that the snapshot results are going to be filtered out later. |
Yes, that is done by RRF. This feature is complementing it, making sure there is no this or that in the set from which version is being selected. |
There are multiple means to address your issues:
All the existing builds out there, having for example |
rrf only knows about groupId/artifactId i thought, how can it be used to filter out snapshot version resolution and avoid 404s ? that will only work if the repo does not have those artifacts at all, right ?
Related question about the |
Yes, and hence it would work in case Accumulo had: asking for bouncycastle md from RAO. But also yes, in general RRF makes decision on config, and is not directly about "do not ask metadata from RAO".
The |
Also see #2574 |
ns
version range filter to filter out all snapshots
RRF doesn't fully address the problem. It addresses the 404s, but wouldn't address the unnecessarily high traffic to RAO to collect the RRF information. In our case, we don't want to even touch RAO at all, when RAO is configured for snapshots only, and we are only resolving version ranges. That's because RAO's abuse thresholds are very low (just as it is for other apache.org services), and we find ourselves frequently struggling to stay under the limits. This is because Apache's abuse policies are source IP-based, so whenever you have many users coming from a single source IP address, they appear as a single abusive user, rather than multiple non-abusive users, and get blocked. In this case, there's just no reason for Maven to contact RAO... not even for RRF information. It's better to avoid RAO, rather than many users/builds each reaching out to RAO for RRF information, because that could still trigger abusive thresholds and get people blocked. |
Adding unconditional
ns
.Depends on apache/maven-resolver#1516
Related to #2558