Reputation: 1687
I already posted one question earlier Project Directory Structure Problem in Eclipse but couldn't get satisfactory answer. So posting the question again with image and making myself more clear
I am trying to import the maven project in eclipse.. can any one please help
Upvotes: 1
Views: 1142
Reputation: 328536
You must import *impl
as a Maven project (i.e. you must import each module individually). Eclipse doesn't support recursive projects (bug).
[EDIT]
When you tell Eclipse to "import the project" make sure to deselect "Copy into workspace". That way, there will be only a single place where all the files are.
Upvotes: 2
Reputation: 6204
Regarding Aarons comment about m2eclipse: Check the Checkout All Projects option when checking out your project (Use checkout as Maven Project from the SVN Repositories view):
It is really that simple, as long as your root pom references all your modules.
Upvotes: 4
Reputation: 17359
After checking out multi-module project:
Import each project into workspace using File>Import>General>Existing Maven Projects
. All modules should appear as individual top-level projects in your workspace.
If your projects don't already have source folders confgiured - configure them using {your project}>Properties/Java Build Path> Source
Upvotes: 2
Reputation: 6204
You must set the proper Java source path in your project properties under Java Build Path.
Upvotes: 3
Reputation: 43209
Open the Java perspective in Eclipse to get the right view. This happens to me if I have the PyDev perspective open.
Upvotes: 2