Home » Newcomers » Newcomers » Eclipse + Maven multi-module project
Eclipse + Maven multi-module project [message #542621] |
Fri, 25 June 2010 13:18 |
Arni Arent 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 #542753 is a reply to message #542725] |
Fri, 25 June 2010 20:37 |
Arni Arent Messages: 2 Registered: June 2010 |
Junior Member |
|
|
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 |
|
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 |
|
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.
|
|
|
Goto Forum:
Current Time: Fri Apr 26 23:25:05 GMT 2024
Powered by FUDForum. Page generated in 0.09011 seconds
|