如下指令可以指定jdk和maven的路径
mvn -version =
"/home/gitlab-runner/jdk1.6.0_22/bin/java" "-Dmaven.home=/home/gitlab-runner/apache-maven-3.2.1-configcenter" "-Dclassworlds.conf=/home/gitlab-runner/apache-maven-3.2.1-configcenter/bin/m2.conf" -classpath "/home/gitlab-runner/apache-maven-3.2.1-configcenter/boot/plexus-classworlds-2.4.jar" org.codehaus.classworlds.Launcher -version