Jenkins Maven打包“java.lang.StackOverflowError异常”


一、环境

Jenkins 2.32.2

openjdk version "1.8.0_121"

apache-maven-3.3.9

二、异常信息

11:50:21 Parsing POMs
14:25:26 FATAL: null
14:25:26 java.lang.StackOverflowError
14:25:26 at java.lang.Exception.
   
   
    
    (Exception.java:102)
14:25:26 at java.lang.ReflectiveOperationException.
    
    
     
     (ReflectiveOperationException.java:89)
14:25:26 at java.lang.reflect.InvocationTargetException.
     
     
      
      (InvocationTargetException.java:72)
14:25:26 at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
14:25:26 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:25:26 at java.lang.reflect.Method.invoke(Method.java:498)
14:25:26 at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50)
14:25:26 at com.sun.proxy.$Proxy77.lookup(Unknown Source)
14:25:26 at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
14:25:26 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:25:26 at java.lang.reflect.Method.invoke(Method.java:498)
14:25:26 at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50)
14:25:26 at com.sun.proxy.$Proxy77.lookup(Unknown Source)
14:25:26 at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
14:25:26 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:25:26 at java.lang.reflect.Method.invoke(Method.java:498)
14:25:26 at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50)
14:25:26 at com.sun.proxy.$Proxy77.lookup(Unknown Source)
14:25:26 at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
......

     
     
    
    
   
   

三、错误原因

Jenkins 2.32.2安装的Maven Plugin版本太低,不支持jdk1.8


四、解决方法

1、升级Jenkins Maven Plugin插件到支持jdk1.8的版本


Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐