Tried to make compatible with Maven 2.2.1