Hi!
Im trying to implement an Archiva consumer, but I have trouble with 
implementing a test case.
There is an archiva-consumer-plugin-archetype that creates a simple 
consumer.

When I run the test case in Eclipse I get this stack trace:
java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at 
org.codehaus.plexus.component.discovery.PlexusXmlComponentDiscoverer.discoverConfiguration(PlexusXmlComponentDiscoverer.java:105)
        at 
org.codehaus.plexus.DefaultPlexusContainer.initializeConfiguration(DefaultPlexusContainer.java:710)
        at 
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:520)
        at 
org.codehaus.plexus.DefaultPlexusContainer.construct(DefaultPlexusContainer.java:277)
        at 
org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:168)
        at 
org.codehaus.plexus.PlexusTestCase.setupContainer(PlexusTestCase.java:100)
        at 
org.codehaus.plexus.PlexusTestCase.getContainer(PlexusTestCase.java:143)
        at 
org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:204)
        at 
no.uis.archiva.consumer.SimpleArtifactConsumerTest.setUp(SimpleArtifactConsumerTest.java:50)
        at junit.framework.TestCase.runBare(TestCase.java:128)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
        at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

I think the same happens with the archiva-consumer-plugin in the sandbox. 
What am I missing here?

Cheers
Martin

Reply via email to