• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ant vs. maven

 
Trailboss
Posts: 23773
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 6055
8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic