Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse + Maven multi-module project
Eclipse + Maven multi-module project [message #542621] Fri, 25 June 2010 13:18 Go to next message
Arni Arent is currently offline Arni ArentFriend
Messages: 2
Registered: June 2010
Junior Member
I'm trying to figure out how to set up a maven multi-module project in my Eclipse.

Eclipse lists all all the project modules in a flat list, not nested, and each module is listed as a separate project, cluttering the workspace with dozens of projects, one per module.

So far I've managed to get around this problem by keeping each multi-module maven project in it's own workspace.

But this is starting to bother me, since I know this has worked in NetBeans for a long time, but not in Helios.

So, that's the question, is there no way to set up multi-module maven projects in Eclipse without having all the modules listed as projects in a flat list?

[Updated on: Fri, 25 June 2010 13:19]

Report message to a moderator

Re: Eclipse + Maven multi-module project [message #542725 is a reply to message #542621] Fri, 25 June 2010 17:19 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
First of all, you can use working sets to group projects and unclutter
the workspace.

Second, M2Eclipse [1] supports multi-module projects to some degree [2].

[1] http://m2eclipse.sonatype.org/
[2]
http://www.sonatype.com/books/m2eclipse-book/reference/creat ing-sect-importing-projects.html#fig-creating-import-multi

HTH
Michael
Re: Eclipse + Maven multi-module project [message #542753 is a reply to message #542725] Fri, 25 June 2010 20:37 Go to previous messageGo to next message
Arni Arent is currently offline Arni ArentFriend
Messages: 2
Registered: June 2010
Junior Member
Michael Pellaton wrote on Fri, 25 June 2010 13:19
First of all, you can use working sets to group projects and unclutter
the workspace.

Second, M2Eclipse [1] supports multi-module projects to some degree [2].

[1] http://m2eclipse.sonatype.org/
[2]
http://www.sonatype.com/books/m2eclipse-book/reference/creat ing-sect-importing-projects.html#fig-creating-import-multi

HTH
Michael


Yes, I am aware of those. I am using M2Eclipse, and set up the project using the method you refer to.

Trying to organize the workspace using working sets is IMO the wrong solution to this problem.

I have multiple branches of the same project, and if I tried to import them all into Eclipse it would result in multiple projects having the same name. In short, it would be a big messy mess.

Trying to resolve it using working sets is a wrong solution. And if this were the only solution, I'd consider another IDE.

I'd think this would need fixing in Eclipse, as many are using Maven nowadays and nested modules. I'm the only developer at my department that uses Eclipse, all the rest don't use it because of this problem.

[Updated on: Fri, 25 June 2010 20:38]

Report message to a moderator

Re: Eclipse + Maven multi-module project [message #542793 is a reply to message #542753] Sat, 26 June 2010 04:41 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Depending on the source management system you use, you can checkout the
different branches using different names. Subversive allows you to
rename projects on checkout using paterns.

Besids that: nested projects in Eclipse is a very long standing issue. I
won't go into details here, but the whole discussions took and take
place in several bugzilla issues.

Michael

On 06/25/2010 10:37 PM, Arni Arent wrote:
> Michael Pellaton wrote on Fri, 25 June 2010 13:19
>> First of all, you can use working sets to group projects and unclutter
>> the workspace.
>>
>> Second, M2Eclipse [1] supports multi-module projects to some degree [2].
>>
>> [1] http://m2eclipse.sonatype.org/
>> [2]
>> http://www.sonatype.com/books/m2eclipse-book/reference/creat
>> ing-sect-importing-projects.html#fig-creating-import-multi
>>
>> HTH
>> Michael
>
>
> Yes, I am aware of those. I am using M2Eclipse, and set up the project
> using the method you refer to.
>
> Trying to organize the workspace using working sets is IMO the wrong
> solution to this problem.
>
> I have multiple branches of the same project, and if I tried to import
> them all into Eclipse it would result in multiple projects having the
> same name. In short, it would be a big messy mess.
> Trying to resolve it using working sets is a wrong solution. And if this
> were the only solution, I'd consider another IDE.
>
> I'd think this would need fixing in Eclipse, as many are using Maven
> nowadays and nested modules.
Re: Eclipse + Maven multi-module project [message #1704262 is a reply to message #542793] Sun, 09 August 2015 23:21 Go to previous message
Mickael Istria - away until Apr 22nd is currently offline Mickael Istria - away until Apr 22ndFriend
Messages: 840
Registered: July 2009
Location: Grenoble, France
Senior Member

A nested view of projects is available in Mars, in "project explorer" (not package explorere the "Projects Presentation > Hierarchical" view menu.
However, this is only a graphical feature, not a change in the internal strucure of projects, so you'd still need to have different names for projects in case you have multiple branches loaded simultaneously in the same workspace.
Previous Topic:i cannot turn on html feature in this forum
Next Topic:Help debug mode: Stops at breakpoint, but line is not highligted, no actions selectable
Goto Forum:
  


Current Time: Thu Sep 19 00:23:08 GMT 2019

Powered by FUDForum. Page generated in 0.03106 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top