Changes in order to work with the Maven built with polyglot, and some fixes after having translated the root pom.xml to pom.scala