This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven or Ant + Ivy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven or Ant + Ivy" Watch "Maven or Ant + Ivy" New topic
Author

Maven or Ant + Ivy

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hey,
Well, I know my question is like asking for favorite web framework or favorite programming language but any way, I'm asking for your opinion, your own stories and hands on experience.
What do you prefer, Maven or Ant + Ivy? did you try both of them?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

How about Maven + Ant? I often use Maven to do what it does best - build and package a single module, whether WAR or JAR, and handle dependencies. I then use Ant to do everything else, such as handle the additional configuration files required by the app server (almost all of my development work concerns Java EE) and do deployment. Also I like Maven's default directory structure, though when I do a pure Ant project I tend to tweak that structure (I prefer a target/dist directory with the JAR or EAR file located there).

But then, I am not a Maven expert - I'm sure that someone well versed in Maven could get it to do what I do with my Maven + Ant combination.

Finally, there are some things that I tackle only with Ant, but then I am using it more like a scripting language than a build tool.


JBoss In Action
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I'm going to add +1 to Peter's reply. I'm a fairly heavy Maven user but unfortunately Maven does not cover all corner cases, dropping back out to Ant can often help you resolve that.

So in short, Maven gives you a great solid base to start from (because it forces you to think about best practices) and Ant can help you get those nasty corner cases that Maven can't handle (yet).


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven or Ant + Ivy
 
Similar Threads
The best way to break a fundamental principle of Maven
[Maven] Customize Project Structure
Build tools comparison
JPA + Hibernate jars?
Do you add External jars manually required for a project