Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven 2 project error icon in Eclipse

I have create multi-module maven project in Eclipse IDE (already installed M2Eclipse plugin). There I can build my project successfully. But after build also it shows errors icon in my every module project. What kind of issue it can be?

Thank You.

like image 293
Chandana Avatar asked Aug 23 '11 03:08

Chandana


2 Answers

Without knowing what errors you are seeing I am going to assume that your issue is with eclipse project properties (build path, src directory specification, output classes directory, etc).

You tagged m2eclipse plugin, so you should be able to right click on your project in eclipse select maven->update project configuration. If you do not see that option under maven then you should first see an option called maven->enable dependency management. Click that first and then you should be able to see update project configuration option.

If this does not fix it, then open your project directory containing the pom.xml file in command prompt and run mvn eclipse:eclipse.

One of the above should resolve those pesky error messages provided that your maven build itself is successful.

like image 57
CoolBeans Avatar answered Sep 18 '22 14:09

CoolBeans


In eclipse open the Markers Tab (You can open it from Window -> Show View -> searching Markers)

It will show all the related errors with your project. You can identify your problems related to your problem, and solve accordingly. Sometimes it shows Quick Fix option, which is helpful.

like image 25
Kowser Avatar answered Sep 22 '22 14:09

Kowser