You are probably missing maven-compat from your plugin dependencies. I
usually add this with scope=test unless my code explicitly depends on
classes from that artifact.

--
Regards,
Igor

On 2014-05-06, 9:33, Jochen Wiedmann 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




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to