Maven 2 project error icon in Eclipse

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.