Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Maven and Eclipse: there is no way to import the glassfish projet (100's of modules) using Eclipse.(Whatever plugin is used, mvn eclipse:eclipse or m2eclipse, it's a failure.)
Maven and Eclipse: there is no way to import the glassfish projet (100's of modules) using Eclipse. [message #873261] Thu, 17 May 2012 20:33 Go to next message
Grunt Grunt is currently offline Grunt GruntFriend
Messages: 9
Registered: December 2009
Junior Member
Hello!

The Glassfish project is an open source project made of hundreds of maven modules.

The organization of these modules is made a way that neither a mvn eclipse:eclipse + Import Projects, nor a m2eclipse installed + Import existing Maven Projects can import all the projects successfully.

For example, among them you will find an artifactId of some name used in two or three differents groupId. Which is legal with Maven, of course.
This, mvn eclipse:eclipse cannot manage, because it names the eclipse projects generated from those modules with the artifactId they have, and this artifactId only. This causes duplicates during importation, making Eclipse ending it quickly.
the eclipse:eclipse plugin should be able to name the projects imported with [groupId].[artifactId] instead. But this feature is no more working since the 2.6 version of this plugin, and we are today on the version 2.9 of this plugin (which, I guess, is currently dying).

The second trouble Eclipse encounters inside the Glassfish modules is that they are not flatted like the Eclipse expect them in a workspace, but they are set in a hierarchical structure:
A
|- B
|- C
|--|--D
|--|--E

And this, for his part, m2eclipse cannot handle.
m2eclipse doesn't search for Maven projects in the subdirectories of C module, for instance, and thus, doesn't create the required .project, .classpath for these submodules.


The end of this story, is that no Maven eclipse plugin is able to handle the Glassfish project, because its organisation is:
- not well understood by m2clipse.
- not well handled by eclipse:eclipse.

The consequence? To enter the Glassfish project in order to view a source file, search an explanation for a bug or submit an feature, you have to use Netbeans and not Eclipse. And Netbeans is not the IDE I want to use.

But what? We are in 2012 now. When shall we expect having a true, native and flawless support of Maven projects and modules by Eclipse? Shall we wait 2018?
Maven projects are often hierarchical.
Eclipse should now be able to handle perfectly a hierachical structure of projects.


But well, one job after other:
Does anyone know the procedure that allows to import all the glassfish modules of the Glassfish project into Eclipse?

Regards,

Grunt.

P.S.:
You can checkout the glassfish project doing an:
svn checkout
from
svn.java.net/svn/glassfish~svn/trunk/main
(https)

and attempt to import it to Eclipse (you are succesful, of course, when no more problems are listed in the Problems view).
But be warned: it's a big challenge!

[Updated on: Thu, 17 May 2012 20:47]

Report message to a moderator

Re: Maven and Eclipse: there is no way to import the glassfish projet (100's of modules) using Eclip [message #880172 is a reply to message #873261] Fri, 01 June 2012 14:52 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You're best bet for an answer is to check out http://www.eclipse.org/m2e/

It looks like they answer user questions on a mailing list:
https://dev.eclipse.org/mailman/listinfo/m2e-users

PW


Previous Topic:Software update doesn't work at all
Next Topic:Reuse the same menu contributions at multiple places
Goto Forum:
  


Current Time: Sun Dec 21 07:08:51 GMT 2014

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

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