"Synchronize with maven projects" ignores profile selection of modules

Hi,
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:
-


...
... flavourOne true basemodule extensionOne flavourTwo basemodule extensionTwo ]]>
-


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!
/David

Edited by: David Ahlard on May 29, 2008 6:15 PM

5 comments
Comment actions Permalink

We have reworked Maven import and this issue have been addressed too.
The 7.0.4 eap contains most of the changes, though there are some relevant that haven't been integrated yet.
I reckon in the next eap (7.0.4 or 8.x) problems with profiles will be solved.

0
Comment actions Permalink

Hi Anton,

Any (vague is fine!) idea when the 7.0.4 version of IntelliJ will be released? I'm really interested in the Maven Enhancements, especially synchronizing in background...

0
Comment actions Permalink

It has just been released 8)))

http://www.jetbrains.net/confluence/display/IDEADEV/Selena+EAP

I'm eager for any feedback 8)

0
Comment actions Permalink

Is that or is that not an EAP release?

It appears to me to be EAP.


Randall Schulz

0
Comment actions Permalink

Sorry for being imprecise. It is an EAP release.

0

Please sign in to leave a comment.