Maven 2 & 3

the encoding parameter in xml declaration of POM is ignored