org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required component.

Jenkins JIRA | jieryn | 7 years ago
  1. 0

    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

    Jenkins JIRA | 7 years ago | jieryn
    org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required component.
  2. 0

    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

    Jenkins JIRA | 7 years ago | jieryn
    org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required component.
  3. 0

    embedding maven into OSGi application

    Stack Overflow | 7 years ago | ekawas
    org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository role: org.apache.maven.Maven roleHint: classRealm: none specified
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to compile Eclipse PAHO MQTT Client project

    Stack Overflow | 2 years ago | Dani
    org.apache.maven.reactor.MavenExecutionException: Cannot find layout implementation corresponding to: 'p2' for remote repository with id: 'eclipse-kepler'. for project org.eclipse.paho:java-parent
  6. 0

    The maven assembly plugin moduleset sources instructions are not including any files and not matching the included modules

    Stack Overflow | 3 years ago | marathon
    org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException role: org.apache.maven.artifact.resolver.ArtifactResolver roleHint: project-cache-aware

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Plexus
      DefaultPlexusContainer.lookup
      1. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
      1 frame
    3. Maven
      Embedder.lookup
      1. org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
      1 frame
    4. Hudson Maven Embedder
      MavenModuleSetBuild$PomParser.invoke
      1. hudson.maven.MavenEmbedder.start(MavenEmbedder.java:695)
      2. hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:181)
      3. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:857)
      4. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:786)
      4 frames
    5. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:747)
      2. hudson.FilePath.act(FilePath.java:729)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.doRun
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:531)
      2. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:391)
      2 frames
    7. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      2. hudson.model.Run.run(Run.java:1243)
      2 frames
    8. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:122)
      2 frames