Conversation
…repository, just do a FileUtils.compare_file with the file in the local repo if present
|
the reason to use maven was to handle all the possible cases in the same way without reimplementing the fetcher, I'm not sure if your code would work with snapshots when they have the timestamped filename and not -SNAPSHOT for example getting com.maestrodev.maestro.plugins:maestro-fog-plugin:1.19-SNAPSHOT from https://repo.maestrodev.com/archiva/repository/public-snapshots/ |
|
Timestamped snapshots should not be a problem, since the timestamp is not //Regards Andreas Knifh Best regards Andreas Knifh On 8 July 2014 16:40, Carlos Sanchez notifications@github.com wrote:
|
Mode param in maven module
Instead of using mvn to check if an artifact is present in the local repository I do it with ruby code. Build the path to the artifact in the local repository and if it's there, do a compare with the target file to see if they are the same.
This makes the maven resource much faster when working with artifacts that cannot be updated, i.e everything except snapshot versions.