jQuery in Action, 3rd edition
The moose likes Ant, Maven and Other Build Tools and the fly likes Need opinion on Apache Ivy for Cattle Drive 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 "Need opinion on Apache Ivy for Cattle Drive" Watch "Need opinion on Apache Ivy for Cattle Drive" New topic

Need opinion on Apache Ivy for Cattle Drive

Greg Charles

Joined: Oct 01, 2001
Posts: 2967

I'm rewriting the servlet assignments for the Cattle Drive, and I'm trying to decide whether it would be worthwhile to include Ivy in the build process for dependency management. The servlets assignments are of course all dependent on the servlet API for the compile. A couple of the later ones will now also use JSTL, and so will have that as a deploy dependency.

The old assignments use Ant to build and deploy, and just require the library jars exist in each project directory. It would be slick to avoid all this copying of jars around and just list dependencies in the build file instead, but I'm reluctant to convert the assignments to Maven. I haven't used Ivy though. How hard is it to install and configure for this purpose, i.e., to resolve dependencies and download them from public repositories when necessary? The servlets section of the Cattle Drive already has a pretty sharp learning curve, and I worry about overwhelming the noobs.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I think Ivy would be a step too far, both in complexity and in reach. My impression is that it's not nearly as widely used as either Maven or Ant-with-all-libraries-statically-included, so the value of learning it early on would be dubious.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

I agree with Ulf. I feel the same way about Maven/Nexus. Not because it is hard per se. But because it is harder to troubleshoot. And because I'd like new developers to understand what is going on and not have a "magic" tool in the way.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Greg Charles

Joined: Oct 01, 2001
Posts: 2967

Thanks for the advice. You're both right. I hate the niggly finding and downloading of jars, but that's probably the lesser of two evils. I definitely like Maven's ability to find my dependencies (and my dependencies' dependencies) and get them all in the right scope, but it was tough for me to learn at first ... much wailing and gnashing of teeth. It's too bad Ant doesn't just come with Ivy functionality built in.
I agree. Here's the link: http://aspose.com/file-tools
subject: Need opinion on Apache Ivy for Cattle Drive
It's not a secret anymore!