spotify/docker-maven-plugin — pull request #49 by dflemstr (2014-12-23 14:44:09+00:00)
Title: Set mtime of copied files to 0 to enable Docker cache

The `copyResources` method always overwrites the files in the Docker context that are going to be copied. This is annoying because then the Docker cache is never triggered, since Docker hashes both the file contents and the mtime when determining what to cache.

Preserving the source mtime doesn't work because Git changes mtime all the time, which is annoying too.

I opted for setting the mtime to epoch + 0 instead, which might not be the cleanest solution, but it works.