Posts /

Maven 3 Cookbook reviewed

Twitter Facebook Google+
15 Nov 2011

Better late than ever, here you can find my review on the Packt Publishing Apache Maven 3 Cookbook written by Srirangan. Let’s see what it has to offer.

 

The basics

The author aims to talk to Maven, and possibly ALM, illiterates. This means the first step is to allow the reader to bootstrap his build infrastructure. This is one of the main Maven features, and the first chapters are easily leaping from nothing to a QA and TDD enabled build system. The book exploits Maven magic all the way there, and goes really fast to the target, no time for digressions on how, why or how does it compare with other build systems.

The ALM

Chapter 3 it’s a bit off topic, even though it’s probably for the greater good: it broadens the attention to ALM as a whole, all on open source products such as Hudson/Jenkins, SCM and a bit of agile. The topic is so huge that one single chapter cannot afford to cover it extensively, nor effectively: take it as an introduction to software lifecycle management, and dig somewhere else if you want more (and you definitely want). Chapter 4 indulges a bit more in QA and non functional build features, such as documentation and reporting. After all, the real mission of Maven is ALM.

The Meat

Chapters 5 to 9 form the really juicy part of the book. I’m not going to rewrite the TOC here, but it’s definitely a rich set of handy recipes that can either directly target common needs or provide inspirational snippets that will effectively help you writing your POM. Good marks for the attention to languages other than Java (but bad marks for forgetting Clojure!).

These chapters offer much more value than the previous, as they’re better aiming at developer needs. Still, focus could have been more towards existing Maven users, leaving the newbies to better learning paths.

Overall impression

tl;dr: If you are already a Maven literate, it's a book you probably want to have close to your keyboard. Just forget about the first three or four chapters.

The book is an authentic source of good base recipes, that you would keep on your desk for quick reference of specific build tasks you need to implement (and your Google foo is weak). All the recipes are provided with a little description of what happens under the hood, so that you may use such knowledge to build upon them your more complex procedures. The whole focus on the book is on getting things done, with lesser attention to fully understanding Maven: after all, a recipes book cannot replace a cooking course. As a result, its tutorial style of presenting recipes completely overlooks fundamental concepts such as plugins, executions and goals, with seldom sloppy terminology (“archetype:generate” is a goal, not a command). While it can be good to always have this book on your desk, if you’re a Maven newbie it’s highly recommended to look somewhere else to build up your knowledge.

Full disclosure

I was asked by Packt to provide this online review, for which I’ve been handed over a digital preview of the book.


Twitter Facebook Google+