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