Jenkins 2.202 version에서 maven build 시 Java8 을 이용했을 때에는 문제가 없으나,
특정 프로젝트가 java7 기반일 때 java jdk 1.7 추가 후 빌드시에 아래와 같은 에러 발생.
Parsing POMs
[workspace] $ /engn001/java/jdk1.7.0_80/bin/java -cp /engn001/csvn/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.5.jar:/engn001/csvn/apache-maven-3.1.0/boot/plexus-classworlds-2.4.2.jar:/engn001/csvn/apache-maven-3.1.0/conf/logging jenkins.maven3.agent.Maven31Main /engn001/csvn/apache-maven-3.1.0 /engn001/csvn/apache-tomcat-8.0.9/webapps/jenkins/WEB-INF/lib/remoting-3.35.jar /engn001/csvn/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.5.jar /engn001/csvn/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.5.jar 44826
Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
at jenkins.maven3.agent.Maven31Main.main(Maven31Main.java:138)
at jenkins.maven3.agent.Maven31Main.main(Maven31Main.java:67)
해결책 : Jenkins 에서 New Item > Freestyle project 를 선택하여 Build 항목에 "Invoke top-level Maven targets"
를 선택하여 처리한다.