Import Maven project in Eclipse (after plug-in m2eclipse) display "exclamation mark"

Source: Internet
Author: User

Sometimes importing some open source projects (MAVEN structure), in eclipse (after the plug-in m2eclipse), the project front
There will be a small red exclamation mark, but the point of the project has not been found to hit the small red fork content, this situation is actually mostly
The jar package depends on the problem caused by the compilation can not pass, if patience can be in the SRC click Code to open, good luck
You will find the error content (Import package name not resloved), find the corresponding jar package under MAVEN dependencies
Click on the relevant jar package discovery cannot be opened (the normally loaded jar is expandable to the directory structure). If you are afraid to find src trouble,
You can also click directly under Maven dependencies to see which Jar does not expand the directory properly, indicating that this jar
A problem occurred while Maven was downloading or loading, resulting in SRC error, which led to the "red exclamation" of the project.

Workaround:
This problem is basically due to the fact that some repositories of Maven3 and Maven2 are downloaded to local jars and other files,
If the error is under MAVEN3, change the relevant configuration of Maven's bin to Maven2 in Eclipse and update it again
Maven project, if not error, then the download corresponding to the previous error jar package and so on all relevant content copy covered out Maven3
Resposity, then change the maven in Eclipse to version 3, and then update it again.

Example: Metaq (full name Metamorphosis) engineering import is both so, when used directly with MAVEN3, its submodule server,
Server-wrapper,tools project all reported "red small exclamation mark", but the inside of SRC did not report "Red fork", according to
The above troubleshooting method found that the quartz and aviator packages are not loaded, and then replaced with Maven2 after the normal compilation load,
Then the contents of the two packages in the Maven2 resposity are covered in Maven3, and the Maven in eclipse
Change to Maven3 after update.

One solution:

Maven--Update Project ...

Import Maven project in Eclipse (after plug-in m2eclipse) display "exclamation mark"

Related Article

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.