Changed maven plugin version to 1.0.M2 in the example given to use maven plugin.