Created
October 15, 2012 20:59
-
-
Save rfscholte/3895433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running org.apache.maven.plugin.dependency.fromConfiguration.TestArtifactItem | |
org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.In | |
vocationTargetException; nested exception is java.lang.reflect.InvocationTargetE | |
xception: null | |
java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. | |
java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | |
sorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray( | |
ReflectionUtils.java:189) | |
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke | |
(ProviderFactory.java:165) | |
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi | |
derFactory.java:85) | |
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork | |
edBooter.java:115) | |
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java: | |
75) | |
Caused by: java.lang.NoClassDefFoundError: org/sonatype/aether/RepositorySystemS | |
ession | |
at java.lang.Class.getDeclaredMethods0(Native Method) | |
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) | |
at java.lang.Class.getMethod0(Class.java:2670) | |
at java.lang.Class.getMethod(Class.java:1603) | |
at org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanc | |
eFromSuiteMethod(JUnit3Reflector.java:152) | |
at org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTest | |
Object(JUnit3Reflector.java:121) | |
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav | |
a:70) | |
at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3P | |
rovider.java:121) | |
at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider. | |
java:98) | |
... 9 more | |
Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.RepositorySyste | |
mSession | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:190) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | |
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) | |
... 18 more | |
Results : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably need to include aether on your classpath. I bet it's leaking through from m2e or some other place when you're running in eclipse. Nothing leaks into the surefire fork ;)