You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alex Ditu <di...@gmail.com> on 2015/07/21 21:28:30 UTC

Update non-unique snapshots from Artifactory to local repository

Hello,

I am new to maven and do not know how to solve this issue: I decided
not to keep timestampped artifacts in Aritfactory but now maven is not
downloading newer artifacts from Artifactory, although in metadata the
versions differ.

I do not want to manually delete my local copy of an artifact in order
to download the latest version, it beats the hole purpose of maven. Is
there an workaround for this? I can't seem to find any solution.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Update non-unique snapshots from Artifactory to local repository

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Am Tue, 21 Jul 2015 23:00:12 +0300
schrieb Alex Ditu <di...@gmail.com>:

> I am not sure if it
> is a specific artifactory issue, I found this:
> https://www.jfrog.com/jira/browse/RTFACT-5404 if it helps

Yes, if the repo does not provide the timestamps, then the policy wont
work. You can purge your snapshots locally, if you dont want to delete
by hand, you can use 

mvn dependency:purge-local-repository

See
https://maven.apache.org/plugins/maven-dependency-plugin/examples/purging-local-repository.html

But I think deleting (with find) is pretty common (so is using
timestamps).

Gruss
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Update non-unique snapshots from Artifactory to local repository

Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Hello,

not sure if you are asking about the general handling or a specific
problem with Artifactory. But with mvn you can use the -U switch to
force a snapshot update.

Otherwise it will use the updatePolicy from
your settings.xml (I think "daily" would be the default for snapshots
repo).

Gruss
Bernd



 Am Tue, 21 Jul 2015 22:28:30 +0300 schrieb Alex
Ditu <di...@gmail.com>:

> Hello,
> 
> I am new to maven and do not know how to solve this issue: I decided
> not to keep timestampped artifacts in Aritfactory but now maven is not
> downloading newer artifacts from Artifactory, although in metadata the
> versions differ.
> 
> I do not want to manually delete my local copy of an artifact in order
> to download the latest version, it beats the hole purpose of maven. Is
> there an workaround for this? I can't seem to find any solution.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org