Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] java.lang.NoClassDefFoundError during local build for OSGi compiler


I tried a mvn clean install locally today in order to prepare for running its tests. However, it fails for the OSGi Compiler Plug-in. Any ideas what could be missing here?

[INFO] Tycho OSGi Compiler Plugin (Incubation) ............ FAILURE [  2.967 s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:24 min
[INFO] Finished at: 2015-04-18T12:35:54+02:00
[INFO] Final Memory: 187M/1031M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project tycho-compiler-plugin: 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] java.lang.NoClassDefFoundError: projects/resources/p001/bin/testresources/Test (wrong name: testresources/Test)
[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
[ERROR] at java.lang.ClassLoader.defineClass(
[ERROR] at
[ERROR] at
[ERROR] at$100(
[ERROR] at$
[ERROR] at$
[ERROR] at Method)
[ERROR] at
[ERROR] at java.lang.ClassLoader.loadClass(
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(
[ERROR] at java.lang.ClassLoader.loadClass(
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.loadClass(
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(
[ERROR] -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :tycho-compiler-plugin

Gunnar Wagenknecht

Back to the top