fix for maven

fix for https://issues.jenkins-ci.org/browse/JENKINS-21713