Failed to read artifact descriptor for Xxx:jar MAVEN Project jar package dependent configuration problem Resolution

Source: Internet
Author: User

In the development process, especially the novice, we often encounter maven download dependent jar package problem, that is, encountered "Failed to read artifact descriptor for Xxx:jar" error.

For this kind of non-business related problems, delay time is very inefficient, and the online solution is too old-fashioned, and it is useless.

1) Either delete the corresponding dependent folder within the warehouse, right-click the project, Maven4myeclipse->update project, select "Force Update of Snapshots/releases" in the popup dialog box, then click " OK ". This will re-download the jar package.

2) either, download the dependency to the local, execute the MVN install command, in fact, these methods are not suitable for the development of Eclipse+java, but also a headache.

In fact, encountered "Failed to read artifact descriptor for Xxx:jar" error, is the jar package download failure caused by, you can go to Maven's warehouse to view (that is. m2\ Repository the path of the Xxx-m2e-lastupdated.properties file, open with Notepad, the description of the error message is "Connect timed out" (Connection timeout):

Then, hurry. Add Mirror Address (tested, http://repo2.maven.org/maven2/available) to the settings.xml file specified in eclipse:

<Mirror>    <ID>Repo2</ID>    <mirrorof>Central</mirrorof>   <name>Human readable Name for this Mirror.</name>    <URL>http://repo2.maven.org/maven2/</URL></Mirror>

Finally, go back to Eclipse, right-click on the project you need to download the jar dependencies on, select "Update Project", tick "force Update of Snapshots/releases":

After clicking OK, it will start to download the update automatically, the error prompt will not be.

Failed to read artifact descriptor for Xxx:jar MAVEN Project jar package dependent configuration problem Resolution

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.