slachiewicz commented on issue #1304:
URL:
https://github.com/apache/maven-resolver/issues/1304#issuecomment-5499274040
### Analysis & Triage
- **Problem Identified**: When resolving version-range metadata
(`Metadata.Nature.RELEASE_OR_SNAPSHOT`), `DefaultUpdatePolicyAnalyzer`
evaluates update requirements against local midnight timestamp calculations,
inadvertently bypassing `updatePolicy=never` repository configurations and
refetching `maven-metadata.xml` daily.
- **Affected Versions**: Target fix for **master (2.1.0)**.
- **Plan to Fix**:
1. Ensure `DefaultMetadataResolver` / `DefaultUpdatePolicyAnalyzer`
respects `RepositoryPolicy.UPDATE_POLICY_NEVER` on composite metadata nature
checks.
2. Add a unit test verifying that cached version-range metadata with
`updatePolicy=never` is not marked as required for update.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]