Search code examples
javaeclipsemavencometd

Importing maven web project in eclipse giving red, *, ? error in .project, .classpath


I have created a maven project following the guidelines of the website http://docs.cometd.org/tutorials/.
It's working fine in CMD.
Now, i have converted this project to eclipse web project using command:
mvn eclipse:eclipse -Dwtpversion=2.0

when i am importing this project to eclipse juno, it's giving some error.enter image description here


In project facets i have checked dynamic web module. But still i'm getting this error.


Solution

  • delete .classpath and target folders(only src and pom whould be there). without running mvn eclipse:eclipse just import like a simple maven project. Give it a try it should work