Added PEX repository to pom for Jenkins

Changed methods relying on deprecated functions