my dog learned polymorphism*
The moose likes Ant, Maven and Other Build Tools and the fly likes Importing Existing multimodule maven project hands eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Importing Existing multimodule maven project hands eclipse" Watch "Importing Existing multimodule maven project hands eclipse" New topic
Author

Importing Existing multimodule maven project hands eclipse

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
I have been trying to import the codebase of Activiti bpm into my eclipse indigo 3.7.0. As the import reaches 11% it never proceeds further for hours. Eventually i have to kill the process. I have been looking for answers since last 5 days. Is the a solution or a workaround. (Please see the attachment)

Thanks in advance



[Thumbnail for ImportingAsMavenProjectStuck.gif]

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Did you try importing it one submodule at a time?

Exactly how are you importing? Existing project into Eclipse? Import from Maven project? Importing from source control? Other?


JBoss In Action
shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
It is a multiple module project with a parent POM and Child POMs .
1. New > Import > Import > Maven > Existing Maven Project
2. Browse and Select Root Folder
3. Advanced Settings > Resolve Dependencies
4. Next

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

There is a difference between the parent POM <-> child POM relationship and the master POM <-> submodule POM relationship. I believe you meant the latter* and that you imported the master POM into Eclipse as an existing POM project. I asked if you could import the individual submodule POMs separately. If you can do that, there is a way to get the master POM into Eclipse also, though not via an import.


* - Yes, a master POM can also be a parent POM for its submodule POMs, which make the submodule POMs also child POMs, but I highly recommend against doing this. But the parent/child relationship is not of importance when performing the Eclipse import.
 
wood burning stoves
 
subject: Importing Existing multimodule maven project hands eclipse