AlexanderBartash opened a new pull request, #2318: URL: https://github.com/apache/maven-resolver/pull/2318
On Windows a collocated temp file is copied over its target with a stream copy instead of being moved, so the target got the current time. The time that the HTTP transport had set on the temp file from the "Last-Modified" header (MRESOLVER-393) was lost, and every file in the local repository had its download time. On other systems the move keeps the time. The copy now sets the last modified time of the target to that of the temp file, so the local repository holds the same times on all systems. The way the content is written on Windows does not change. Tools that read the time are affected by the old behaviour, for example the minimumReleaseAge filter of versions-maven-plugin treated every newly downloaded version as published at the moment of the download. Fixes #2317 Generated-by: Claude Code (claude-fable-5-2) --- To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) check one of the following: - [x] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) - [x] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). -- 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]
