Workaround for maven dependent jar download failure

Source: Internet
Author: User

There is a situation in the MAVEN project where the specified dependent jar packages are not shown in the project, but the build period specifies the third-party plug-ins that rely on many other jar packages that are also required to be downloaded to the local repository, otherwise they will be error-free, for example:

Failure to find org.codehaus.plexus:plexus-io:jar:2.0.5 in Http://xxx.xxx.xxx:8089/nexus/content/groups/cninfo_ Group is cached in the local repository, resolution is not being reattempted until the update interval of central have El apsed or updates is force.


The solution at this time is:

1) If the network is not good enough to download the jar package from the central repository via Nexus, remove the third-party plugin

2) If the network is good, go to the local repository directory, delete the directory that cannot download the jar package, such as the org/codehaus/plexus/plexus-io/2.0.5 directory, and then modify the Pom.xml file to download the jar package from the central repository from the new


This article from "Small Fish Blog" blog, declined reprint!

Workaround for maven dependent jar download failure

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.