Reputation: 13709
I am new to maven projects. Steps followed :
File
-> Import
. pom.xml
file.Finish
. Project imported and all files were placed in the Project Explorer of the eclipse.The directory structure was not as that of a java package, it was just a normal folder structure. I am not able to browse the code quickly i.e. get the declaration, different calls to a method and all the code browsing shortcuts. It gives a error says.. Project not in Build Path. On right clicking the project, there are no options present in the 'Build Path'.
Please let me know, what I am doing wrong here. How to import a maven project correctly into eclipse and set it up ?
Upvotes: 8
Views: 20898
Reputation: 41
I have faced similar issue . I have resolved this issue :
Right click on project -> properties -> Project Facets -> convert it into Facet form
And you can get the folder structure as you want
Upvotes: 3
Reputation: 11
I resolved this issue with:
your issue will be resolved.
Upvotes: 1
Reputation: 126
I faced the same issue and could resolve by following steps
This should resolve the issue. Hope this helps.
Upvotes: 2
Reputation: 22948
Run :
mvn eclipse:clean
Then
mvn eclipse:eclipse
And it should be it's old self again, if not refresh the project in eclipse and that should do it
Upvotes: 11