Hello everyone,
When I execute, mvn site -Dmaven.test.skip=true -e for the top-level project, I get the following: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error getting reports from the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.4.2:report' in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-surefire-report-plugin:2.4.2:report. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error getting reports from the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.4.2:report' in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports (DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports (DefaultLifecycleExecutor.java:642) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:311): at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.4.2:report' in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo (DefaultPluginManager.java:575) at org.apache.maven.plugin.DefaultPluginManager.getReport (DefaultPluginManager.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports (DefaultLifecycleExecutor.java:683) ... 18 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-surefire-report-plugin:2.4.2:report. at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:323): at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:312): at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:440): at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo (DefaultPluginManager.java:566) ... 20 more This causes maven to fail. The failure actually happens in the first subproject encountered that has junit tests in it. That is, the site actually is generated for some of the projects. None of those projects have any junit tests in them, though. I've tried wiping out %USERPROFILE%/.m2/repository, but the result is always the same. I have also removed the use of our own maven respository in the hope that would help. All of the plugins were downloaded from the default maven repository, http://repo1.maven.org/maven2. The only thing I can think of that might cause this is that in one of the subprojects we have a dependency on version 2.4.2 of maven-surefire-report-plugin. We are using this to parse the XML junit test reports in order to format them into a concise format that can be emailed out as part of our nightly build. (If you know of a better way to parse the xml, I would love to hear it. I'm very hesitant to remove this dependency since I'm sure we're not using a public API.). I don't think that this is the cause, though. I temporarily changed the dependency to be on version 2.4.3 and still got the same error. Does any one have any idea what might be causing this and what I can do to fix it? My guess is that there is some inconsistency in the maven repository, but I don't know enough about how it works to fix it locally to make things start working. Maven version: 2.0.8 Java version: 1.5.0 OS name: "windows server 2003" version: "5.2 build 3790 service pack 1" arch: "x86" Family: "dos". We're also using the IBM JVM. I doubt if that would make a difference, though. Thanks for any help anyone can provide, -Jeff Hagelberg Jeffrey Hagelberg, Software Engineer Metadata Server (WMDSEE) IBM Software Group Phone:(508)599-7425(T/L:518-7425) Email:[EMAIL PROTECTED]