Added distribution management code inside the pom.xml for being able to build through Jenkins.