Details

    • Similar Issues:

      Description

      I have create a new webapp project.
      mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp

      I have committed the project into a git repository.

      I have create a new "Build a maven2/3 project" job on jenkins that perform the git clone and the mvn install.

      It works.

      I added a post build action (type: Deploy artifacts to Artifactory).

      Now the build fails.

      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:174)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.ExceptionInInitializerError
      at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:101)
      at hudson.maven.Maven3Builder$MavenExecutionListener.sessionEnded(Maven3Builder.java:297)
      at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:137)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
      at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      ... 18 more
      Caused by: sun.misc.InvalidJarIndexException: Invalid index
      at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:858)
      at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:765)
      at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      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 org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromParent(ClassRealm.java:405)
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:46)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at hudson.maven.reporters.MavenArtifact.<clinit>(MavenArtifact.java:75)
      ... 27 more

        Attachments

        1. config.xml
          5 kB
        2. log
          10 kB
        3. sample.tar.gz
          10 kB

          Activity

          Hide
          simone_livraghi Simone Livraghi added a comment - - edited

          Jenkins version: 1.525
          Jenkins Artifactory Plugin version: 2.1.6
          Maven Integration plugin version: 1.525

          Artifactory version: 3.0.1 (rev. 30008)

          Show
          simone_livraghi Simone Livraghi added a comment - - edited Jenkins version: 1.525 Jenkins Artifactory Plugin version: 2.1.6 Maven Integration plugin version: 1.525 Artifactory version: 3.0.1 (rev. 30008)
          Hide
          simone_livraghi Simone Livraghi added a comment - - edited

          sample.tar.gz contains the sample maven projec that fail the build.

          Show
          simone_livraghi Simone Livraghi added a comment - - edited sample.tar.gz contains the sample maven projec that fail the build.
          Hide
          ruckc Curtis Ruck added a comment -

          I'm having this occur since last thursday/friday.

          Show
          ruckc Curtis Ruck added a comment - I'm having this occur since last thursday/friday.
          Hide
          sepimour Johan Nell added a comment -

          Getting this since I upgraded to Jenkins 1.525 with the 2.1.6 Artifactory plugin yesterday. Artifactory server @ v. 3.0.0 (rev. 30001)

          Show
          sepimour Johan Nell added a comment - Getting this since I upgraded to Jenkins 1.525 with the 2.1.6 Artifactory plugin yesterday. Artifactory server @ v. 3.0.0 (rev. 30001)
          Hide
          yossis yossis added a comment -

          A fixed version will be released soon. Please watch https://www.jfrog.com/jira/browse/HAP-420 for more details.

          Show
          yossis yossis added a comment - A fixed version will be released soon. Please watch https://www.jfrog.com/jira/browse/HAP-420 for more details.
          Hide
          yossis yossis added a comment -

          Duplicates https://www.jfrog.com/jira/browse/HAP-420.
          Will be fixed in version 2.1.7

          Show
          yossis yossis added a comment - Duplicates https://www.jfrog.com/jira/browse/HAP-420 . Will be fixed in version 2.1.7

            People

            • Assignee:
              yossis yossis
              Reporter:
              simone_livraghi Simone Livraghi
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: