问题
When you kick off a maven test in Jenkins, what is Jenkins putting onto the Java classpath by default?
回答1:
it would be system's classpath (jdk you specified) and maven dependencies available to test phase
You can verify it by adding
System.out.println(System.getProperty("java.class.path"));
来源:https://stackoverflow.com/questions/24412637/whats-by-default-on-the-classpath-when-you-run-a-jenkins-job