MavenBook Alpha 0.5: POM Optimization Chapter
New Material from Brian Fox on POM Optimization
Sonatype has released a new chapter in the Maven Book on POM Optimization. Covers dependencyManagement, pluginManagement, and the Dependency Plugin.
The optimization chapter is a collaboration between Brian Fox and myself. Brian wrote the original content and I revised and extended his material. This chapter is at the end of Part I of Maven: The Definitive Guide, and it optimizes the POMs from the large multi-module, enterprise example at the end of Part I. Read this alpha release, and please, let us know what you think. The address for book feedback is book@sonatype.com.
Here's an excerpt. (Or, here's a run on sentence that won't survive the copy editing process.)
"Optimizing a Multi-Module project’s POM is best done in several passes as there are many areas to focus on. In general, we are looking for repetition within a POM and across the sibling POMs. When you are starting out, or when a project is still evolving very rapidly, it is acceptable to duplicate some dependencies and plugin configurations here and there, but as the project matures and as the number of modules increases, you will want to take some time to refactor common dependencies and configuration points. Making your POMs more efficient will go a long way to helping you manage complexity as your project grows. Whenever there is duplication of some piece of information, there is usually a better way."
You can read more here.
Re: MavenBook Alpha 0.5: POM Optimization Chapter
There are a few answers to the question about PDF downloads. We're currently reviewing the PDF downloads for a few reasons. My main concern is that I'm focused on writing content and the format of the PDF output wasn't up to spec. When we have some time to circle back and make sure that the PDF output is up to spec, then we'll make it available again. No promises or timeframes here, we're really just thinking about what the best use of our time is, and we've come to the conclusion that focusing on written content is the best use of our time. Especially as the book goes through the production process.
Feel free to contact me directly (at book@sonatype.com or tobrien@sonatype.com if you want to discuss this).
Feel free to contact me directly (at book@sonatype.com or tobrien@sonatype.com if you want to discuss this).

