When maven says “resolution will not be reattempte

2019-01-01 08:15发布

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.

  1. Is the update interval that is mentioned in this error message a client-side or server-side setting?
  2. If client-side, how do I configure it?
  3. If server-side, does anyone know how/if Nexus/Artifactory expose these settings?

13条回答
梦该遗忘
2楼-- · 2019-01-01 08:42

In Eclipse:

  • Right-Click on the Project -> Run As -> Maven Build -> Specify Goal as "clean install" -->> The Required Artifacts will be downloaded to the local repository.
  • -->> When the Build SUCCESS!! -> Right-click Project-> Maven -> Update Project (check clean).
查看更多
登录 后发表回答