This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant vs. maven

 
paul wheaton
Trailboss
Pie
Posts: 21736
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's been a couple of years since I've looked into this ... I've known people that tried maven and moved back to ant. Now I'm looking at starting a new project and thinking about looking into maven again ... but ... I thought it might be good to have some discussion along these lines with folks in the know.

So ... is maven clearly superior now?
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven seems really nice for the developer who wants to get some code/project to use. I don't know if it has improved recently for the original developer who needs to set up the directory structure.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I still prefer Ant over Maven. The main reason being, while Maven let's me get started in a couple of minutes rather than several minutes, extending the built-in Maven functionality seems to be much more difficult than with Ant.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Last time I looked into Maven, I got the impression that it really was more aligned with the needs of an open source project than with the needs of in inhouse commercial one. Which is fine, but not what I wanted at that time.
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We looked at Maven and found it it was more complicated to set up than Ant. It is also harder to tweak down the road.

--Mark
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven is better if you want to set up your project in the exact structure that Maven tells you too. If you want to use a different structure or have to convince people to change their structure, Ant is better.

Maven makes it harder to create a big messy build file by limiting how you can extend it. So it does what it does well. Ant does everything, even if it is sometimes yuckier to do. There are lots of extensions for both. Most of the things you'd want are written for Ant and Maven.

As you can see, I lean towards Ant.
 
Franck Smith
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been used ant in several projects. Now I have to migrate 5 projects to maven. I can say that ant and mavan are different. Maven is not just a building tool, it provide an organization and a structure layer. All you do in ant can be done in Maven because you can call ant target.
Projects I'm working on have very big and complex ant builds and don't have exactly the structure of maven convention but it's still possible to migrate them.
The most advantage to migrate to Maven are : standardization of how to handle a project, dependencies are clearly defined, the concept of artifacts that can be shared to other projects, documentations and reports, remote and local repository concepts.
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven 2 is a lot cleaner than Maven 1. Your project files should be much smaller and prettier under Maven 2.

I don't much care for Maven, since it does a lot of "magic" for you and I also prefer my (non-Maven) project directory standards.

However, the bulk of the Apache Java projects are Maven-based, so obviously someone likes it!
 
Michael Duffy
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
Maven 2 is a lot cleaner than Maven 1. Your project files should be much smaller and prettier under Maven 2.

I don't much care for Maven, since it does a lot of "magic" for you and I also prefer my (non-Maven) project directory standards.

However, the bulk of the Apache Java projects are Maven-based, so obviously someone likes it!


I think Maven is an unnecessary complication over and above Ant.

I'd prefer looking into Ivy as a way of managing dependencies on JARs.
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I first used Ant, my eyes popped open and I said "Wow".

Maven has never had that effect on me, although several colleagues do beat that drum.

Guy
 
Brian R. Wainwright
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently evaluating whether to recommend that my software development group adopt Maven. My last exposure to Maven was with 1.0 at a different company. It was well received because there were no standards in place for project management and maven helped to establish and define those standards. Now that I'm with a new company with established practices however, I'm having second thoughts about Maven. While the 2.0 product does seem to be better organized, my first impression is that it may not be worth the trouble trying to migrate well established ant practices to maven. The obvious lure of Maven is the documentation and project management features which are currently lacking in my organization, yet if one can't cleanly migrate existing project structures and workflows it may not be worth the trouble. The way we're doing things now isn't necessrily broken, but it could be done better with better results. The problem I think I'm having is that Maven does so much for you that you may have to radically alter development practices in order to adopt it. In larger organizations, this is usually not an option.
 
Shilpa Anand
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I saw in some of the previous replies that some of you have migrated existing ant projects to Maven. I am trying to migrate an existing project to maven, but I am having some existing in-house library jar files which I want to use as a dependcy for compiling my project. I do not have idea about how to do it. Can anyone guide me PLEASE.....?

Thanks in advance!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic