The new upcoming Eclipse Version 3.2 (Callisto) does support nested projects. So there is no need for any workaround to get nested project structure into eclipse.

I can configure it manually and it works. Also there are no nested src-folders. It only ends up with two projects that will use the same src- and output-folders. These two projects are the top-project and one sub-project.

So I would like to have a switch for the eclipse:eclipse goal to generate a .classpath file for the topmost project. This should contain the src- and output-folders of all subprojects (modules).

Regards,
Ingo

Steven Coco schrieb:

Hello,

I use the eclipse plug in to generate the .classpath and .project files.
These work fine for all my submodules, but it doesn't generate these files for the top module.

How can I generate a .classpath file for the top project that contains all source-folders and dependencies of the submodules?

Regards,
Ingo
It's not possible to do this because this winds up with nested source directories and/or nested eclipse project folders, and eclipse will not allow it.

I agree that this is very annoying in eclipse: it seems to me as of now that if you have a parent POM project then you are unable to ever mount that in eclipse. I don't know a thing about eclipse project structure or anything relevant. I will mention that the Maven 2 module that plugs into Netbeans will handle this. And that plugin works seemingly nicely: you can simply open any POM folder in NetBeans as a project, and the IDE does not generate any of its own files -- no .netbeans folder or anything. The downside is that that plugin is riddled with odd problems: I can't "run file" or "compile single", and it always regurgitates the POM with your comments removed and with arbitrary formatting. So to me it's less ergonomic in the end than eclipse is -- since you have to edit the POM by hand for a lot of things the plugin doesn't support, but it keeps on reformatting everything on you.

Let me know if some of that didn't make sense! And tell me if you experience the same thing.

Good luck,
Steev Coco.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to