alexholmes/hadoop-book — pull request #1 by cnauroth (2012-03-04 21:02:23+00:00)
Title: set version 2.7.2 for maven-surefire-plugin to suppress warning

Hi Alex,

I'm one of the reviewers for Manning. I worked with the code from GitHub at this revision:

commit 002b87838d1ecd1e1a8d02d360f64ea27e34fc59
Date: Sat Feb 18 21:34:07 2012 -0500

When I ran “mvn package”, I got this warning:

[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.manning.hip:hadoop-book:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 177, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]

I’m on a MacBook Pro running OS X 10.6.8, Java 1.6.0_29 64-bit and Maven 3.0.3. This pull request fixes it by explicitly setting maven-surefire-plugin version 2.7.2, which is the same version in effect reported by "mvn help:effective-pom".

I'm really enjoying the book!

Thanks,
--Chris