maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Wiedmann <jochen.wiedm...@gmail.com>
Subject Re: ComponentLookupException
Date Tue, 06 May 2014 18:03:35 GMT
Beg your pardon, Jason, but couldb't the reason be that  simply need one of
the aether jar files (Whatever provides RepositorySystem with hint "basic"?



On Tue, May 6, 2014 at 3:51 PM, Jason van Zyl <jason@takari.io> wrote:

> Hard to tell without the code, but a lot of times the error is the
> component metadata is not present or it's wrong. If you hand wrote it you
> might have a typo, or you might not have the metadata generators configured.
>
> On May 6, 2014, at 6:33 AM, Jochen Wiedmann <jochen.wiedmann@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am trying to implement a test case for a plugin, utilizing the Plugin
> > testing harness. I am getting the exception below.
> >
> > Any ideas what I might be doing wrong?
> >
> > Thanks,
> >
> > Jochen
> >
> >
> >
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> > java.util.NoSuchElementException
> >      role: org.apache.maven.repository.RepositorySystem
> >  roleHint:
> >    at
> >
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:247)
> >    at
> >
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:235)
> >    at
> >
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:229)
> >    at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:206)
> >    at
> >
> org.apache.maven.plugin.testing.AbstractMojoTestCase.setUp(AbstractMojoTestCase.java:126)
> >    at junit.framework.TestCase.runBare(TestCase.java:139)
> >    at junit.framework.TestResult$1.protect(TestResult.java:122)
> >    at junit.framework.TestResult.runProtected(TestResult.java:142)
> >    at junit.framework.TestResult.run(TestResult.java:125)
> >    at junit.framework.TestCase.run(TestCase.java:129)
> >    at junit.framework.TestSuite.runTest(TestSuite.java:255)
> >    at junit.framework.TestSuite.run(TestSuite.java:250)
> >    at
> >
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> >    at
> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> >    at
> >
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> >    at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> >    at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> >    at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> >    at
> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> > Caused by: java.util.NoSuchElementException
> >    at
> >
> org.sonatype.guice.bean.locators.LocatedBeans$Itr.next(LocatedBeans.java:184)
> >    at
> >
> org.sonatype.guice.bean.locators.LocatedBeans$Itr.next(LocatedBeans.java:124)
> >    at
> >
> org.sonatype.guice.plexus.locators.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:64)
> >    at
> >
> org.sonatype.guice.plexus.locators.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:52)
> >    at
> >
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243)
> >    ... 18 more
> >
> >
> >
> > --
> > "That's what prayers are ... it's frightened people trying to make
> friends
> > with the bully!"
> >
> > Terry Pratchett. The Last Hero
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> http://twitter.com/takari_io
> ---------------------------------------------------------
>
> Our achievements speak for themselves. What we have to keep track
> of are our failures, discouragements and doubts. We tend to forget
> the past difficulties, the many false starts, and the painful
> groping. We see our past achievements as the end result of a
> clean forward thrust, and our present difficulties as
> signs of decline and decay.
>
>  -- Eric Hoffer, Reflections on the Human Condition
>
>
>
>
>
>
>
>
>
>


-- 
"That's what prayers are ... it's frightened people trying to make friends
with the bully!"

Terry Pratchett. The Last Hero

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message