Maven integration unusable for larger projects

We are facing the situation that IDEA's Maven integration is virtually unusable for larger Maven projects (say 50-100 modules). Some of our problems are:

- Opening the project takes about 30 minutes and most of the time involves re-indexing of all files, including JDK classes (by comparison, "mvn eclipse:clean eclipse:eclipse" takes about a minute)
- Very often IDEA becomes totally unresponsive and hangs forever when the project is opened
- After running a Maven build from the command-line, IDEA indexes all files produced by the build, again causing a loss of time for the developer

Although the extremely poor performance makes me wonder whether IDEA's approach of integrating with Maven is fundamentally wrong, I do understand that such criticism isn't very helpful. Therefore I'd like to propose some features that might improve our situation:
- Allow actions (e.g. re-import) on individual modules rather than the whole project only
- Allow full control over which modules are built by IDEA, and which are taken from the Maven repository, with the ability to rapidly change this "working set"
- Offer a more lightweight Maven integration, similar to eclipse:eclipse and the former idea:idea

I'm a big fan of IDEA and try to promote it where I can, but unless Maven integration improves soon, our team will have to abandon IDEA and go back to Eclipse. Please help!

Cheers,
Peter

PS: We are currently using Diana EAP build 8890, but have had similar issues with IDEA 7.

40 comments
Comment actions Permalink

Hi Anton,

I am trying out Maia just now and found that overall the Maven integration is much better - one small (or big depending on the size of your project) issue is happening for me though.

If I edit a pom file, IntelliJ will try to 're-import' the module even before I have finished editing (can be halfway into changing a version number for example.

Now, this could be a user error, but I fail to find a way to turn this behaviour off.  It seems the 'This file has changed, do you want to re-import' button no longer exists.

Cheers,

Johan

0
Comment actions Permalink

I need to say I've encountered this a lot too myself, I've actually come to a point where I edit pom files in another text editor rather than Intellij to avoid this ....

0
Comment actions Permalink

I am leaning in that direction, but you loose all the (really nice) auto-complete features ...

0
Comment actions Permalink

there's a jira for it, which I'll vote for as soon as I manage to log in youtrack (there seem to be issues, the server is not returning the login form), feel free to do so too


edit : forgot to include the issue id : http://jetbrains.net/tracker/issue/IDEA-23127

0
Comment actions Permalink

Will do - if you know the ticket number that would save me some time

0
Comment actions Permalink

IDEADEV-39286 "Maven synchronization cuases keyboard and mouse lock ups"  (http://jetbrains.net/tracker/issue/IDEADEV-39286 in the new YouTrack, which is not 100% up and ready yet i believe).

0
Comment actions Permalink

http://jetbrains.net/tracker/issue/IDEA-23127 is actually different and is really what I'm suffering : I didn't notice any keyboard /mouse  issues

0
Comment actions Permalink

Hi Thibaut,

39286 may just not have the best name. It's about the issue you described above, where Maven imports too quickly and/or constantly. As a result you cannot type in the POM, or interact with the GUI, while it is importing/synchronizing. For example, sometimes you start typing "org.ap" for a dependency group ID, and IDEA starts to import before you can finish typing the actual group ID ("org.apache,commons"). Like you, I have taken to editing my POMs in an external editor. In 39286, some of the proposed solutions mirror what 23127 suggests: either waiting until the user saves the file before importing, adding a button to manually do the import (as was present in previous IDEA versions), and add a setting to determine if IDEA auto imports or if it is only done manually. So I think these two reports are about the same underlying issue, but focus on different manifestations of the problem.

Regards,
Mark

0
Comment actions Permalink

makes sense, looks like they're duplicates then

0
Comment actions Permalink

In the cold weather, the UGG boots are considered as the best shoes.More and more people like wearing the UGG boots such as the UGG Classic Metallic 5812]]>.With its development ,the UGG boots have lauched different kinds of boots into the fashion market,including the UGG Classic Short Boots]]> and the UGG Women's Highkoo]]>.However,in the fashion world,if you want to be more attractive and elegant,the beautiful shoes are not enough.You have to choose the best stylish handbag to match your shoes.Therefor,the designer replica handbags are very necessary.If you want to buy the best designer cheap handbags,i would like to introduce two famous brand handbags to you.I think there must be one handbag is your favorite.One is the famous brand Versace Handbags ,the other is the Ferragamo Handbags.Both of them are the famous brand in the world.Their quality are very good.

---
Original message URL: http://www.jetbrains.net/devnet/message/5254899#5254899

0

Please sign in to leave a comment.