Today, Jenkins was configured to build a Git project. The following problems were encountered, which made it impossible to build
Parsing POMs Injecting SonarQube environment variables using the configuration: sonarqube-5.5 FATAL: null java.lang.StackOverflowError at sun.reflect.GeneratedMethodAccessor7533.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor7533.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor7533.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor7533.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor7533.invoke(Unknown Source)
Query relevant documents and record https://issues.jenkins-ci.org/browse/JENKINS-34394
There are two solutions:
1.take -U out of mvn arguments
2. Upgrading to the latest maven plugin for Jenkins (2.14)
I don't have the - U parameter here. I will upgrade the maven plug-in later.
As the server is an intranet server, plug-ins cannot be upgraded online. Therefore, relevant plug-ins can be obtained through the official website for upgrading
Download address of maven plug-in: http://mirrors.jenkins-ci.org/plugins/maven-plugin
Local upgrade method of Jenkins plug-in:
1. Management plug-ins in Jenkins system management
2. Upload plug-ins in advanced options, and upload the downloaded plug-ins with. hpi extension to the server
3. The plug-in installation / update interface appears, wait for the installation to complete, and then restart Jenkins (because it has been installed, the following information appears)
4. After restarting, you can see that the plug-in has been updated to the relevant version just installed in the plug-in management installed plug-in