• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • Jenkins 1.625.3, Maven 3.3.3, Maven Integration Plugin 2.12.1, OpenJDK 1.8.0_77

      Just moved Jenkins to a new box, most projects build fine, except one which fails with the following error:

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

      Manual build works in the workspace fine. I am attaching the pom, if this helps.

          [JENKINS-34394] Maven build fails with stack overflow

          We figured out that if we take -U out of mvn arguments it works fine.
          Still, we'd like to use it.

          Xenofon Papadopoulos added a comment - We figured out that if we take -U out of mvn arguments it works fine. Still, we'd like to use it.

          This is wrong. The behaviour is completely inconsistent. Most of the times it doesn't work, but now and then it does, then stops working again.
          Any suggestions?

          Xenofon Papadopoulos added a comment - This is wrong. The behaviour is completely inconsistent. Most of the times it doesn't work, but now and then it does, then stops working again. Any suggestions?

          I was encountering the same issue on a java project.
          Updating to the latest maven plugin for jenkins (2.14) resolved the issue for me.

          Tyler Pinckard added a comment - I was encountering the same issue on a java project. Updating to the latest maven plugin for jenkins (2.14) resolved the issue for me.

          Kevin Pauli added a comment -

          Ditto on updating to 2.14

          Kevin Pauli added a comment - Ditto on updating to 2.14

            Unassigned Unassigned
            xpapad Xenofon Papadopoulos
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: