Hi,

If I do a mvn install with a project all artifacts are being installed into my local cache..


The question I have:

Can I somehow identify if an artifact is already been in my local cache or not (within a Maven plugin or extension)?

Something like:

if (artifact is in local cache) {
   Do...
}
else
{
   Do something different..
}

If I can check it somehow, can I furthermore check how long the artifacts has been there based on the update policy ? So can i see ok this artifact has been there since yesterday so it would make sense to update it? (I assume based on modification date simply?)...

Furthermore is there a way to prevent downloading from remote repos if the artifact is not in my local cache?


Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to