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

hpi:run takes org.apache.maven.embedder.MavenEmbedderException building m2 project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      I'm trying to create a Hudson plugin. I issued:

      $ mvn hpi:create
      $ <edit pom.xml to set Hudson version to 1.352>
      $ mvn hpi:run

      When Hudson 1.352 starts I create a new M2 job which pulls over SVN from https://svn.apache.org/repos/asf/maven/maven-2/tags/maven-2.2.1/maven-core ... I also have automatically installed maven-2.2.1. I am able to build the project just fine using work/tools/*/bin/mvn in the checked out workspace.

      Here's the console for the M2 project:

      Started by user anonymous
      Checking out a fresh workspace because /home/jesse/tmp/hudson/maven-columns/work/jobs/maven-core/workspace/maven-core doesn't exist
      Checking out https://svn.apache.org/repos/asf/maven/maven-2/tags/maven-2.2.1/maven-core
      A src
      [ skipping many files ]
      At revision 927118
      Parsing POMs
      ERROR: Failed to parse POMs
      org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required component.
      at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:731)
      at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:181)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:857)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:786)
      at hudson.FilePath.act(FilePath.java:747)
      at hudson.FilePath.act(FilePath.java:729)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:531)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:391)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1243)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)
      Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.project.MavenProjectBuilder.
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
      at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
      at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:695)
      ... 12 more
      Finished: FAILURE

            Unassigned Unassigned
            jieryn jieryn
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: