org.apache.maven.embedder.MavenEmbedderException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by jieryn,
  • 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
    via by jieryn,
  • embedding maven into OSGi application
    via Stack Overflow by ekawas
    ,
  • how to run maven build in Cloud9
    via by Unknown author,
    • 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

    Users with the same issue

    Unknown visitor1 times, last one,
    Casper
    10 times, last one,
    Unknown visitor1 times, last one,