File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven or Ant + Ivy" Watch "Maven or Ant + Ivy" New topic

Maven or Ant + Ivy

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

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

Joined: May 14, 2008
Posts: 5852

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

Joined: Jun 24, 2003
Posts: 3275

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:
subject: Maven or Ant + Ivy
It's not a secret anymore!