<parent>
<groupId>com.test</groupId>
<artifactId>cloud-parent</artifactId>
<version>1.1.0</version>
</parent>
When my pom.xml contains above content and local repository has not parent pom, jenkins has following error:
Parsing POMs
FATAL: null
java.lang.StackOverflowError
at java.lang.Exception.<init>(Exception.java:102)
at java.lang.ReflectiveOperationException.<init>(ReflectiveOperationException.java:89)
at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72)
at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50)
at com.sun.proxy.$Proxy87.lookup(Unknown Source)
at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50)
at com.sun.proxy.$Proxy87.lookup(Unknown Source)
at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
......
but when I execute "mvn package" on the command line, it can download parent pom:
Downloading: http://cloudrepo.rd.test.net:8081/nexus/content/groups/public/com/test/cloud-parent/1.1.0/cloud-parent-1.1.0.pom
Downloaded: http://cloudrepo.rd.test.net:8081/nexus/content/groups/public/com/test/cloud-parent/1.1.0/cloud-parent-1.1.0.pom (16 KB at 34.7 KB/sec)
Jenkins can download the corresponding dependencies and build success when other dependencies are changed, so I don't think there is a problem with the configuration of jenkins.
- duplicates
-
JENKINS-41697 StackOverflowError parsing Maven POM
- Resolved