There may be a way to do this, but I just can't seem to find it.
My company uses a standardized model for how we set up our maven projects. Each "project" has a core, parent, and webapp module. While the artifactId and directory names are the same, they have different group names.
I'd like to be able to make an IntelliJ project which contains 2 or 3 of these maven projects. To do this, I create a new project by importing from external model (maven), then doing the same thing again and importing into the same project.
The only trouble is that IntelliJ doesn't seem to like having two modules with the same name. When I try to start up the project after closing the project I get an error message telling me that "these modules have been removed from the maven structure: 'parent', 'core', 'webapp' Do you want them to be removed from the project too?"
Things go downhill from here. Either I tell it no and both directories end up in a single core, webapp, or parent module; or one set of the modules get deleted. Either way the modules don't retain the right dependency setup.
Does anybody have a similar setup and a way to work around it? I'm working with multiple project right now, but that doesn't work very well for refactoring. :(
Edited by: Matthew Flower on Sep 5, 2008 2:00 PM