aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Book For Maven 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 "Book For Maven" Watch "Book For Maven" New topic
Author

Book For Maven

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 757
Hi,

I want to learn Maven, Can anybody suggest me any good book for beginner. I don't know any building tools like ant or maven. I am completely new to Maven.

Thanks

Jigar Naik


Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Maven: The Complete Reference
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

I liked Better Builds with Maven significantly better than the Sonatype book (complete guide) linked to above. "Better Builds with Maven" covers more real world scenarios and more non trivial scenarios. Both books are available as free PDFs so you can try both for yourself and see which you like better.

One thing I don't like about Maven is the "it just works" mentality. That's awesome until "it doesn't work." The Sonatype book felt like a mix of documentation, minor examples and "it just works." Where "Better Builds with Maven" reads more like a book.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

Here's the free PDF Sonatype puts out of the complete reference.
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 757
Thanks a lot Jeanne & John...
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Jeanne,
What is your favorite Java build tool? because seriously, I don't like any.
The community should do a better job in this area IMHO.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

John Todd wrote:Jeanne,
What is your favorite Java build tool? because seriously, I don't like any.
The community should do a better job in this area IMHO.

I don't have one either. I like gradle, but I've only played with it on something trivial (and not a real prject.) Which means I haven't hit any of the annoying real world scenarios. Ant and Maven are both perfectly fine for a simple project without any plugins.

I've used Ant for a lot longer with Maven. And I've written many plugins for Ant. For Maven I wrote one trivial plugin and am currently struggling with my first real/complex one. I find the documentation/resources for Ant to be better. Maybe because it is older?

Maven is great when it works. I like the dependency management/transitive dependencies. I like how you have a hierarchy of POMs. It's still maddening when something doesn't work. Or when you have to figure out what an (undocumented) convention is that Maven is relying on. Hopefully as I gain more experience with Maven I will have less of these moments. However, that's not a strong selling point.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I have used both Ant and Maven in very complex projects. Currently I am making Maven do wonderful things that it was not built for, but for which it is very well suited.

Maven is very much a "black box". If you decide to go with Maven it would behoove you to understand it fully. And the only way to do that is to write some plugins that actually do some work. And writing a plugin that handles a new packaging type is highly recommended - it literally opens up your eyes as to what Maven is doing. And by the way, Maven's handling of dependencies, and its use of repositories to maintain JAR files is its most worthwhile feature.

Ant, on the other hand is pretty much like "make*" for Java. You can get Ant to do just about anything and even use it as a general scripting language.

I recommend that you learn both. Why? Because many open source projects use one of the other for their builds.

* - make is a utility used by C/C++ developers to perform their builds. I have done wild and crazy things with "make" ages ago and have make Ant do similar things.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Book For Maven