Code changed for build under maven 2.2.1. Use more new version of maven: 3.0.4 or later.