With maven, I occasionally hit an artifact that comes from some 3rd-party repo that I haven't built or included in my repository yet.
I'll get an error message from the maven client saying that an artifact can't be found:
Failure to find org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.4.0 in
http://myrepo:80/artifactory/repo
was cached in the local repository, resolution will not be reattempted until the update interval of MyRepo has elapsed or updates are forced -> [Help 1]
Now, I understand what this means, and can simply re-run my command with -U
, and things usually work fine from there on out.
However, I find this error message to be extremely unintuitive and am trying to spare my co-workers some headaches.
I am trying to figure out if there is some place that I can modify this update interval
setting.
update interval
that is mentioned in this error message a client-side or server-side setting?I used to solve this issue by deleting the corresponding failed to download artifact directory in my local repo. Next time I run the maven command the artifact download is triggered again. Therefore I'd say it's a client side setting.
Nexus side (server repo side), this issue is solved configuring a scheduled task. Client side, this is done using -U
, as you already pointed out.
you can delete the corresponding failed artifact directory in you local repository. And also you can simply use the -U
in the goal. It will do the work. This works with maven 3. So no need to downgrade to maven 2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With