fixed JENKINS-16931 for Maven jobs