Maven dependency Error--Download failure problem solution

Source: Internet
Author: User

Problem Description:

  The container ' Maven Dependencies ' references non existing library ' ${groupid}/${artifactid}-${version}.jar '

Solution:

The problem is often caused by network problems during the download dependency process. At this point we have started to download the dependency code, but the download failed, the native repository will be in the ${maven_repo}/${groupid}/${artifactid}/${version} path under the *.lastupdated file; *.lastupdated is really hateful, next time the download due to its presence maven will not download again.

  1. Open the directory where the local repository is located, find the *.lastupdated through the Windows folder search function, and then delete all the found files

  2. Re-Maven Update Project,

    1. Tick on force Update of Snapshots/releases when operating in eclipse

    2. If you add the-u parameter to the command line operation

In general, the above method solves the problem.

Maven dependency Error--Download failure problem solution

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.