a more elegance and reasonable way to adjust extension by parsing pom.xml.

Signed-off-by: dannygod <dannygodii@gmail.com>