Anupam Gupta
Anupam Gupta

Reputation: 1687

project directory structure related issue

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

enter image description here

I am trying to import the maven project in eclipse.. can any one please help

Upvotes: 1

Views: 1142

Answers (5)

Aaron Digulla
Aaron Digulla

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

Torsten
Torsten

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):

enter image description here

enter image description here

It is really that simple, as long as your root pom references all your modules.

Upvotes: 4

Eugene Ryzhikov
Eugene Ryzhikov

Reputation: 17359

After checking out multi-module project:

  1. Import each project into workspace using File>Import>General>Existing Maven Projects. All modules should appear as individual top-level projects in your workspace.

  2. If your projects don't already have source folders confgiured - configure them using {your project}>Properties/Java Build Path> Source

Upvotes: 2

Torsten
Torsten

Reputation: 6204

You must set the proper Java source path in your project properties under Java Build Path.

enter image description here

Upvotes: 3

Jacob
Jacob

Reputation: 43209

Open the Java perspective in Eclipse to get the right view. This happens to me if I have the PyDev perspective open.

enter image description here

Upvotes: 2

Related Questions