I disabled my PeerGuardian program on my computer and all the aforementioned
problems are gone. Seems like PeerGuardian is interfering with downloads
when doing mvn install. However, I encounter another new problem now with
NoClassDefFoundError. I tried adding C:\junit4.1\junit-4.1.jar to my
Classpath but to no avail.
[DEBUG] Adding to surefire booter test classpath: C:\Documents and
Settings\User\.m2\repository\org\apache\maven\surefire\surefire-api\2.7.2\surefire-api-2.7.2.jar
Scope: compile
Forking command line: cmd.exe /X /C "C:\Java\jdk1.6.0_26\jre\bin\java -jar
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\target\surefire\surefirebooter436897204776495759.jar
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\target\surefire\surefire8819505597522285218tmp
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\target\surefire\surefire2197105008165144533tmp"
java.lang.NoClassDefFoundError: org/junit/runner/notification/RunListener
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at
org.apache.maven.surefire.util.ReflectionUtils.getConstructor(ReflectionUtils.java:76)
at
org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:129)
at
org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:198)
at
org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:72)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:146)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Caused by: java.lang.ClassNotFoundException:
org.junit.runner.notification.RunListener
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 java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:93)
... 11 more
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4:05.781s
[INFO] Finished at: Sun Jul 10 18:11:38 GMT+08:00 2011
[INFO] Final Memory: 4M/11M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (surefire-it) on
project workbook-ex03_1: There are test failures.
[ERROR]
[ERROR] Please refer to
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\target\surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (surefire-it)
on project workbook-ex03_1: There are test failures.
Please refer to
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\target\surefire-reports
for the individual test results.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.
Please refer to
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\target\surefire-reports
for the individual test results.
at
org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:74)
at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:642)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
[ERROR]
--
View this message in context:
http://maven.40175.n5.nabble.com/mvn-install-Failure-executing-javac-but-could-not-parse-error-tp4568321p4570218.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]