Menu

FAQ

Johannes Hintsch

Eclipse: NoClassDefFoundError when running MyServerTest

Problem: Eclipse with m2e-android doesn't put provided-scope dependencies on the test-classpath.

Solution: run tests via "mvn clean install" and main classes such as MyServerTest with "mvn exec:java -Dexec.mainClass="de.hintsch.mobile.android.smsserver.MyServerTest" -Dexec.classpathScope="test""


MongoDB Logo MongoDB