slachiewicz opened a new pull request, #2336: URL: https://github.com/apache/maven-resolver/pull/2336
Wagon reads `Last-Modified` into the `Resource` but never sets it on the downloaded file, so with `-Dmaven.resolver.transport=wagon` every file in the local repository has its download time. The Apache, JDK and Jetty transporters already set the remote time (MRESOLVER-393). The Wagon transporter now sets it too, from the `TRANSFER_COMPLETED` event, before the temp file is moved into place. Tools that read that time see the download time as the publication date, for example the `minimumReleaseAge` filter of versions-maven-plugin (mojohaus/versions#1497). As with the HTTP transporters, the update check now sees a downloaded snapshot as dated by the server, not by the download. Related: #2317 and #2319 fix the same loss on Windows for the HTTP transporters. A 1.9.x port will follow. --- 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]
