I got the same pom and the same error. I had guessed that surefire had replaced junit, but as I got this ClassCastException, I thought surefire was not a report plugin. What is the problem here ? Need to file in JIRA ?
---------- Mail d'origine ----------- De : "news" [EMAIL PROTECTED] A : [email protected] Cc : Date : Tue, 12 Jul 2005 09:10:15 +0200 Objet : Re: [m2] JUnit report plug-in -Emmanuel Venisse wrote: -> Yann LE DU wrote: ->> ->> I'm looking for the JUnit report plug-in in Maven 2. Is ->> it implemented yet or is it planned for beta 1 ? -> -> it exist since the first alpha. it's the surefire plugin. - -And what is needed in pom.xml to get the surefire report? - -| <project> -| ... -| <reporting> -| <plugins> -| <plugin> -| <groupId>org.apache.maven.plugins</groupId> -| <artifactId>maven-surefire-plugin</artifactId> -| </plugin> - -As a result of the groupId and artifactId above, m2 (alpha 3) reports -a ClassCastException: - -| [INFO] [site:site] -| [INFO] maven-project-info-reports-plugin: checking for updates from central-plugins -| [INFO] Retrieving release information for maven-project-info-reports-plugin -| [INFO] maven-project-info-reports-plugin: resolved to version 2.0-alpha-1 from local repository -| [INFO] maven-surefire-plugin: checking for updates from central-plugins -| [INFO] Retrieving release information for maven-surefire-plugin -| [INFO] maven-surefire-plugin: resolved to version 2.0-alpha-3 from local repository -| [INFO] maven-javadoc-plugin: checking for updates from central-plugins -| [INFO] Retrieving release information for maven-javadoc-plugin -| [INFO] maven-javadoc-plugin: resolved to version 2.0-alpha-1 from local repository -| [INFO] ---------------------------------------------------------------------------- -| [ERROR] BUILD ERROR -| [INFO] ---------------------------------------------------------------------------- -| [INFO] Diagnosis: Error during site generation -| [INFO] ---------------------------------------------------------------------------- -| [ERROR] Cause: -| org.apache.maven.plugin.MojoExecutionException: Error during site generation -| at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:323) -| at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:401) -| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:169) -| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:150) -| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133) -| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103) -| at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261) -| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180) -| at org.apache.maven.cli.MavenCli.main(MavenCli.java:269) -| 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:585) -| at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) -| at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) -| at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) -| at org.codehaus.classworlds.Launcher.main(Launcher.java:363) -| Caused by: java.lang.ClassCastException: org.apache.maven.test.SurefirePlugin -| at org.apache.maven.doxia.DoxiaMojo.categorizeReports(DoxiaMojo.java:332) -| at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:207) -| ... 16 more - -Thanks, -Daniel Schömer - - ---------------------------------------------------------------------- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
