Fix pom.xml and templates