lifecycle-mapping for version from 3.0

mapping for maven-plugins before 3.0 is not anymore supported
code reformatted