1

I have been working with Netbeans quite a while and I am now moving to Eclipse.

Basically I have a Maven project that I would like to work on using Eclipse.

What I am not sure about is whether I need to point my Eclipse workspace to the directory where my project super pom is located or whether the Eclipse workspace needs to point to a clean/empty directory.

My question is basically:

  • Are the source files eventually located in the Eclipse workspace directory?

Can anyone please advise?

Regards,

balteo
  • 23,602
  • 63
  • 219
  • 412

3 Answers3

1

you can use the maven eclipse target to generate project files so you can move them directly in the eclipse workspace:

mvn eclipse:eclipse

info on the plugin

MaxS
  • 47
  • 9
1

If you have the m2e or m2eclipse plugin installed, you can just do "Import..." then "Existing Maven Projects" and point it at the super-pom. It'll import all the modules it finds, as separate projects.

artbristol
  • 32,010
  • 5
  • 70
  • 103
  • Thanks for the reply. Eventually are the source files located in the workspace directory? – balteo Jan 13 '12 at 15:43
  • No, they stay where they are. But if you check out into your workspace directory, you can then 'import' them, even though they're already physically in the same directory. – artbristol Jan 13 '12 at 16:14
1

It's a matter of personal preference whether you have the source files in the workspace folder or not. Eclipse can import your project from any folder. Personnaly, I keep my projects folder separated from the workspace folder.

Giorgos Dimtsas
  • 12,019
  • 3
  • 29
  • 40