Maven dependency similar to is cached in the local repository-like error

Source: Internet
Author: User

We often encounter such problems when using MAVEN to compile a project.
Could not get the value for parameter encoding for plugin execution default-resourcesPluginorg.Apache.maven.Plugins:maven-Resources-plugin:2.6Or one of its dependencies could isn't be resolved: FailureTo find org.Codehaus.plexus:plexus-Utils:Jar:1.1In http://nexusserver:8081/nexus/content/groups/public/was cached in the local repository, resolution won't be reattempte D until the update interval of MIRR ...
was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> 
The general meaning is that the jar package is not fully downloaded, but it has to be in two different cases.
One possibility is that the local did not download the complete, here the reason may be the first download because the network reason is unsuccessful, then Maven is not trying.
References
This is often a false positive. Imagine You has a connection issue lasting only 5 seconds when Maven 3 tries to download a dependency, it'll mark this Dependency as unavailable for a delay. And thus would prevent you to replaying the build command even if the network issue is fixed.
Just Run the command with THE-U option. Even if it description applies to snapshots, it seems to also fix the error if it occurred on a release.
example:mvn-u Clean Package

In addition, we can increase the Updatepolicy strategy in Setting.xml
Setting.xml Guide http://maven.apache.org/ref/3.3.1/maven-settings/settings.html
There is such a description in the schema of Setting.xml

Schemahttp://maven.apache.org/xsd/settings-1.0.0.xsd
Another scenario is that the nexus we rely on is not fully downloaded, and it may be that the configured Central Warehouse agent repository does not exist at all, or it needs to be found in a third-party repository, and we should try to check and configure the agent repository.

Maven dependency similar to is cached in the local repository-like error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.