Maven 2 project error icon in Eclipse

≯℡__Kan透↙ 提交于 2019-12-09 17:03:01

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/7156101/maven-2-project-error-icon-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!