[JENKINS-20092] optionally add M2_HOME/lib/ext for Maven3