Maven + Intellij

I've been trying to search for a clear answer but I havent come across one that answers my overall question.  I'm about to start a project and tyring to figure out if I should put any effort into using Maven when I'm developing with Intellij.  It seems that I can set everything up in intellij and even create libraries using the maven option, I can setup my artifacts, deploy my applications to web applications if I'm doing web development etc ...

Any maven users out there, can you help me understand why I should bother setting up all these things using maven if I already have a powerful IDE that can do all this out of the box?  The only benefit I came up with is if I decide to stop using Intellij and move to something like Netbeans.  I can then see having a maven project help out in that migration since there would be probably no or little effort in migrating.  Any other reasons?

Thanks in Advance!

-JM

3 comments
Comment actions Permalink

When you are developing medium to large scale projects with multiple developers involved, you don't want to be dependent on the IDE to build the project artifacts (jar, war, ear, etc). That is where Maven comes in handy. The are other use cases but I think that is on the top of the list.

0
Comment actions Permalink

Chris,

Thanks for the reply, You have a good point.  I forgot to mention we also use TeamCity for our CI and builds and it recognizes Intellij Projects.  I guess if I dont want to be so dependent on JetBrains products it proably makes sense to use maven.  TC actually also supports Maven so the only reason I guess I still see to start using maven on our new effort is to not have that dependency.

-Jesus

0
Comment actions Permalink

I would echo Chris' points and add this... While IDEA is indeed a very powerful IDE, it does have some limits when it comes to its build component. (After all, it is an IDE, not a build system.) You never know when in the middle of a large project you will have a new strange build requirement come up. (And they always seem to come up at crunch time.) With Maven, there most likely is a plug-in to handle that new build requirement. Even something as simple as token replacement can't be done in IDEA.

-Mark

0

Please sign in to leave a comment.