aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant or Maven? Does it make a difference for web apps? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant or Maven? Does it make a difference for web apps?" Watch "Ant or Maven? Does it make a difference for web apps?" New topic
Author

Ant or Maven? Does it make a difference for web apps?

Vasilis Souvatzis
Greenhorn

Joined: Mar 23, 2014
Posts: 28

Hello everyone... All I know about Ant and Maven is that Ant is the default build tool for Netbeans, and that Netbeans has excellent Maven support.

Considering I'm building a JavaEE7 web-app for my uni thesis (vague and broad title but still...), should I go with Ant or Maven? Is one better than the other at web-apps?


Netbeans 8.0.1 - JavaEE 7 - Glassfish 4.1
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1768
    
    7

It depends on what you need, they can both do everything you need and then some. Ant is arguably more flexible, but the price of that flexability is having to script the entire build process yourself, from sratch. There are a lot of custom Ant tasks out there that offer all kinds of functionality that you can integrate into your own scrips. Dependency management can be handled with Ivy, which is very powerful. You don't have the benefit of a uniform build lifecycle across projects, but that is less important in your case.
Maven, on the other hand, offers a host of project archetypes, which are essentially templates that help you get up to speed with new projects quickly. It also offers dependency management out of the box, and defines a standard lifecycle. You can extend the capabilities of Maven with various plugins.

In your case I'd pick Maven.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Vasilis Souvatzis
Greenhorn

Joined: Mar 23, 2014
Posts: 28

Thank you for this great info! Yes, I'll be the only one working on my projects so I guess it wouldn't matter which of the build tools I'd choose.

I like the archetypes you mentioned so I'll go with Maven, I may even base my project on an archetype if it suits me.

Thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant or Maven? Does it make a difference for web apps?