Strange maven-surefire-plugin error

980 views
Skip to first unread message

Frank Huster

unread,
Mar 1, 2016, 2:12:29 PM3/1/16
to motec...@googlegroups.com
While working on pushing the rome 3rd party library to our nexus repo (hand marked as version 1.6.0 instead of the current 1.6.0-SNAPSHOT it really is) I changed the version of all the rome libraries on my machine to 1.6.0 and rebuilt them all (and thus moving them to my local .m2 repo dir)

I'm now changing my atom-client module to use the 1.6.0 rome libraries and am running into a seemingly unrelated (yet annoying as heck) issue when I mvn clean install in the atom-client directory:

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 5.818 s

[INFO] Finished at: 2016-03-01T11:02:06-08:00

[INFO] Final Memory: 69M/1720M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project atom-client: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process

[ERROR] org.apache.maven.surefire.util.SurefireReflectionException: java.lang.ClassNotFoundException: org.apache.maven.surefire.junitcore.JUnitCoreProvider

[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:251)

[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:128)

[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.createProviderInCurrentClassloader(ForkedBooter.java:227)

[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:196)

[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)

[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

[ERROR] Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.junitcore.JUnitCoreProvider

[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.loadClass(ReflectionUtils.java:243)

[ERROR] ... 5 more

[ERROR] -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException





Any clue?

--
Frank Huster
Mobile Health Innovations
Grameen Foundation

Frank Huster

unread,
Mar 1, 2016, 2:24:17 PM3/1/16
to motec...@googlegroups.com
Strangely, rebooting my laptop seems to have fixed this issue...
Weird.
Reply all
Reply to author
Forward
0 new messages