Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1693

'mvn compile' fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • trayapp
    • None
    • Platform: All, OS: All

    Description

      If you run 'mvn install' from the root Hudson pom dir, it works. But 'mvn
      compile' fails:

      [INFO] ------------------------------------------------------------------------
      [INFO] Building Hudson Tray Application Client App
      [INFO] task-segment: [compile]
      [INFO] ------------------------------------------------------------------------
      [INFO] [enforcer:display-info

      {execution: default}

      ]
      [INFO] Maven Version: 2.0.8
      [INFO] JDK Version: 1.6.0_06 normalized as: 1.6.0-6
      [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.24-16-generic
      [INFO] [localizer:generate

      {execution: default}

      ]
      [INFO] [dependency:unpack-dependencies

      {execution: unpack-dependencies}

      ]
      [INFO] Unpacking
      /space/src/hudson/plugins/hudsontrayapp/client-common/target/classesto
      /space/src/hudson/plugins/hudsontrayapp/client/target/classes
      with Includes null and excludes:null
      org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
      at
      org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:174)
      at
      org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:107)
      at
      org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:266)
      at
      org.apache.maven.plugin.dependency.UnpackDependenciesMojo.execute(UnpackDependenciesMojo.java:90)
      at
      org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error unpacking file:
      /space/src/hudson/plugins/hudsontrayapp/client-common/target/classes to:
      /space/src/hudson/plugins/hudsontrayapp/client/target/classes
      org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.

      Perhaps a bug in the unarchiver plugin?

      Attachments

        Activity

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/plugins/hudsontrayapp/client/pom.xml
          trunk/hudson/plugins/hudsontrayapp/plugin/pom.xml
          http://fisheye4.cenqua.com/changelog/hudson/?cs=9607
          Log:
          [FIXED JENKINS-1693] generate-resources phase is too early to unpack other dependencies, as they may not be built. So think of this as a post-compilation step that adds more class files instead.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/plugins/hudsontrayapp/client/pom.xml trunk/hudson/plugins/hudsontrayapp/plugin/pom.xml http://fisheye4.cenqua.com/changelog/hudson/?cs=9607 Log: [FIXED JENKINS-1693] generate-resources phase is too early to unpack other dependencies, as they may not be built. So think of this as a post-compilation step that adds more class files instead.

          People

            davyboyhayes davyboyhayes
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: