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

java.lang.NoClassDefFoundError: hudson/maven/MavenModuleSetBuild

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: copyartifact-plugin
    • Labels:
      None
    • Similar Issues:
      Show 5 results

      Description

      I'm using jenkins 1.466.2 via the regular Ubuntu packages on Ubuntu Quantla (12.10) with the copyArtifact plugin (version 1.25)

      The console output for the build of one of my Jenkins projects consistently shows this:

      Started by user Murray Cumming
      Building in workspace /var/lib/jenkins/workspace/maliit-plugins
      Checkout:maliit-plugins / /var/lib/jenkins/workspace/maliit-plugins - hudson.remoting.LocalChannel@35e47b48
      Using strategy: Default
      Last Built Revision: Revision 1004cc39badd17308a1fabfe0b72d1e762572b4b (origin/master)
      Fetching changes from 1 remote Git repository
      Fetching upstream changes from git://gitorious.org/maliit/maliit-plugins.git
      Commencing build of Revision 1004cc39badd17308a1fabfe0b72d1e762572b4b (origin/master)
      Checking out Revision 1004cc39badd17308a1fabfe0b72d1e762572b4b (origin/master)
      FATAL: hudson/maven/MavenModuleSetBuild
      java.lang.NoClassDefFoundError: hudson/maven/MavenModuleSetBuild
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:198)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
      at hudson.model.Build$RunnerImpl.build(Build.java:178)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
      at hudson.model.Run.run(Run.java:1438)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)
      Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSetBuild
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 10 more

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
            http://jenkins-ci.org/commit/copyartifact-plugin/d00c85521648361512e84ea0439ca6b1a95b9a4c
            Log:
            Merge pull request #14 from cjo9900/JENKINS-15977

            [FIXED JENKINS-15977] ClassNotFound is maven plugin not installed

            Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/7df40f147030...d00c85521648

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/CopyArtifact.java http://jenkins-ci.org/commit/copyartifact-plugin/d00c85521648361512e84ea0439ca6b1a95b9a4c Log: Merge pull request #14 from cjo9900/ JENKINS-15977 [FIXED JENKINS-15977] ClassNotFound is maven plugin not installed Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/7df40f147030...d00c85521648
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: cjo9900
            Path:
            src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
            http://jenkins-ci.org/commit/copyartifact-plugin/6cd2d83c58527c87cfbcc174fdbf6f5767c8dcbd
            Log:
            [FIXED JENKINS-15977] ClassNotFound is maven plugin not installed

            Check for the maven plugin being installed before trying to see
            if the project src is a maven project.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: cjo9900 Path: src/main/java/hudson/plugins/copyartifact/CopyArtifact.java http://jenkins-ci.org/commit/copyartifact-plugin/6cd2d83c58527c87cfbcc174fdbf6f5767c8dcbd Log: [FIXED JENKINS-15977] ClassNotFound is maven plugin not installed Check for the maven plugin being installed before trying to see if the project src is a maven project.
            Hide
            bobfields Bob Fields added a comment -

            I had the same problem: upgrade from 1.523 to 1.524, NoClassDefFoundError, Maven Integration Plugin no longer in the list of installed plugins. All of my projects (maven) and build history were also gone, with a message about changes stored on disk that could not be migrated to the current format (under 'Manage Old Data'). I re-installed the plugin (from Manage Jenkins -> Manage Plugins), and everything worked again.

            Show
            bobfields Bob Fields added a comment - I had the same problem: upgrade from 1.523 to 1.524, NoClassDefFoundError, Maven Integration Plugin no longer in the list of installed plugins. All of my projects (maven) and build history were also gone, with a message about changes stored on disk that could not be migrated to the current format (under 'Manage Old Data'). I re-installed the plugin (from Manage Jenkins -> Manage Plugins), and everything worked again.
            Hide
            mika Michael Prokop added a comment -

            I just ran into this problem with Jenkins version 1.524:

            10:53:58 FATAL: hudson/maven/MavenModuleSetBuild
            10:53:58 java.lang.NoClassDefFoundError: hudson/maven/MavenModuleSetBuild
            10:53:58 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:221)
            10:53:58 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
            10:53:58 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
            10:53:58 at hudson.model.Build$BuildExecution.build(Build.java:199)
            10:53:58 at hudson.model.Build$BuildExecution.doRun(Build.java:160)
            10:53:58 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
            10:53:58 at hudson.model.Run.execute(Run.java:1593)
            10:53:58 at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
            10:53:58 at hudson.model.ResourceController.execute(ResourceController.java:88)
            10:53:58 at hudson.model.Executor.run(Executor.java:247)
            10:53:58 Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSetBuild
            10:53:58 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            10:53:58 at java.security.AccessController.doPrivileged(Native Method)
            10:53:58 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            10:53:58 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
            10:53:58 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
            10:53:58 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
            10:53:58 ... 10 more

            The problem was fixed by enabling the "Maven Integration plugin". I don't have any maven related configurations/jobs in this setup and therefore haven't had any Maven (related) plugins enabled so far, when upgrading from Jenkins 1.522 to 1.524 and also updating all related plugins this broke as noted above.

            Show
            mika Michael Prokop added a comment - I just ran into this problem with Jenkins version 1.524: 10:53:58 FATAL: hudson/maven/MavenModuleSetBuild 10:53:58 java.lang.NoClassDefFoundError: hudson/maven/MavenModuleSetBuild 10:53:58 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:221) 10:53:58 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 10:53:58 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) 10:53:58 at hudson.model.Build$BuildExecution.build(Build.java:199) 10:53:58 at hudson.model.Build$BuildExecution.doRun(Build.java:160) 10:53:58 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) 10:53:58 at hudson.model.Run.execute(Run.java:1593) 10:53:58 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 10:53:58 at hudson.model.ResourceController.execute(ResourceController.java:88) 10:53:58 at hudson.model.Executor.run(Executor.java:247) 10:53:58 Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSetBuild 10:53:58 at java.net.URLClassLoader$1.run(URLClassLoader.java:217) 10:53:58 at java.security.AccessController.doPrivileged(Native Method) 10:53:58 at java.net.URLClassLoader.findClass(URLClassLoader.java:205) 10:53:58 at java.lang.ClassLoader.loadClass(ClassLoader.java:321) 10:53:58 at java.lang.ClassLoader.loadClass(ClassLoader.java:266) 10:53:58 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334) 10:53:58 ... 10 more The problem was fixed by enabling the "Maven Integration plugin". I don't have any maven related configurations/jobs in this setup and therefore haven't had any Maven (related) plugins enabled so far, when upgrading from Jenkins 1.522 to 1.524 and also updating all related plugins this broke as noted above.
            Hide
            murrayc Murray Cumming added a comment -

            Yes, upgrading Jenkins seems to have fixed this. After upgrading to the jenkins.org .deb packages (1.493), there is no "Maven 2 Project plugin" available or installed, but the "Maven Integration plugin" seems to be installed by default.

            And my "Copy artifacts from another project" build step now works.

            Thanks.

            Show
            murrayc Murray Cumming added a comment - Yes, upgrading Jenkins seems to have fixed this. After upgrading to the jenkins.org .deb packages (1.493), there is no "Maven 2 Project plugin" available or installed, but the "Maven Integration plugin" seems to be installed by default. And my "Copy artifacts from another project" build step now works. Thanks.

              People

              • Assignee:
                Unassigned
                Reporter:
                murrayc Murray Cumming
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: