we're running idea 7.0.3 and have a rather large maven project, consisting of a "root" pom.xml and multiple sub-modules, each with their own pom.xml. The entire system is modular, and we're building different "flavours" using maven profiles in the "root" pom.xml, something like this:
We have multiple teams working in the same codebase, sharing some of the modules, but not all. And here's the catch:
We can't get idea to correctly understand what modules are currently used in a chosen profile. Opening the "Maven projects" docker and pressing "Synchronize with maven projects" always adds all modules to the project view, even if a specific Profile (specifying some, but not all modules) has been selected in the Maven docker tree. We've tried to add the profile to .m2/settings.xml but that doesn't help either.
Our workaround now is to use the "mvn -PflavourTwo idea:idea" to generate the idea project files, which gives us the correct modules for a specific module, but it would be great if we could do this from inside idea.
I'm wondering if there's anything we're missing, or if the synchronization simply doesn't care about what modules are defined for the current profile scope?
Thankful for any assistance!
Edited by: David Ahlard on May 29, 2008 6:15 PM