[Maven] Missing artifact (solution), mavenartifact

Source: Internet
Author: User
Tags maven central

[Maven] Missing artifact (solution), mavenartifact

When using the Maven plug-in of Eclipse, you will often encounter Missing artifact compilation errors, especially when you build related projects in the new environment. This problem often occurs. Today, another colleague has encountered this problem, after a query of the cause of the problem, the problem cannot be solved. We decided to study the problem to avoid such problems in the future.

 

The following are the methods you have tried:

1. Right-click the project and choose Maven> Update Dependency.

2. Right-click the project-> Maven-> Disable Dependency and Enable Dependency.

3. Delete Eclipse and other projects (do not delete files on the disk) and re-import them. The problem persists and fails.

4. Delete the corresponding project from the disk and re-download it from SVN. Import the project. The problem persists and fails.

 

After going through the above various attempts, found that the problem is not in these configurations, may be caused by conflicts in some places, unwilling to search online, find a solution: http://blog.csdn.net/mydeman/article/details/6126503

The reason for the analysis is that it is caused by a jar package. After carefully checking the log file, I found that it is very similar to the one described in the article, in addition, the Jar package I reported the first error does not contain the pom file, for example:

<Dependency> <groupId> opensymphony </groupId> <artifactId> quartz </artifactId> <version> 1.6.3 </version> </dependency>

However, our pom file cannot be modified.

Why is the error "Missing artifact" reported when Maven downloads Dependencies from the central repository?

This is the case when Maven encounters timeout during the last download. Delete the component directory of the local repository and update it.

How to solve the maven pom file error (eclipse environment)

If these errors are reported, the dependent jar package cannot be found.

Generally, these open-source components can be stored in maven central. Check whether your mirror (in the settings file) or repositories (in the pom file) is set correctly.

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.