Hi,
I'm attempting to build an apache project (jetspeed) using maven. The build
throws a org.apache.maven.usability.MojoExecutionExceptionDiagnoser
exception. The exception has no meaningful documentation nor does it appear
on the maven mailing lists.
Can anyone suggest what may have caused the exception?
Here's a snipped copy of the build output:
$ mvn -e -P tomcat,min
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] jetexpress Portal
...
[snip/]
...
Downloading: javax/activation/activation/1.0.2/activation-1.0.2.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while
executing this line:
/home/paul/src/jetspeed-training/jetexpress/etc/build.xml:300: The following
error occurred while executing this line:
/home/paul/src/jetspeed-training/jetexpress/etc/build.xml:305: The following
error occurred while executing this line:
/home/paul/src/jetspeed-training/jetexpress/etc/build.xml:505:
java.lang.ClassCastException:
org.apache.maven.usability.MojoExecutionExceptionDiagnoser cannot be cast to
org.apache.maven.usability.diagnostics.ErrorDiagnoser
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An Ant
BuildException has occured: The following error occurred while executing
this line:
/home/paul/src/jetspeed-training/jetexpress/etc/build.xml:300: The following
error occurred while executing this line:
/home/paul/src/jetspeed-training/jetexpress/etc/build.xml:305: The following
error occurred while executing this line:
/home/paul/src/jetspeed-training/jetexpress/etc/build.xml:505:
java.lang.ClassCastException:
org.apache.maven.usability.MojoExecutionExceptionDiagnoser cannot be cast to
org.apache.maven.usability.diagnostics.ErrorDiagnoser
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
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:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.MojoExecutionException: An Ant
BuildException has occured: The following error occurred while executing
this line:
...
[snip/]
...
... 41 more
Caused by: java.lang.ClassCastException:
org.apache.maven.usability.MojoExecutionExceptionDiagnoser cannot be cast to
org.apache.maven.usability.diagnostics.ErrorDiagnoser
at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:75)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.diagnoseError(AbstractArtifactTask.java:382)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:455)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 47 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 34 seconds
[INFO] Finished at: Tue Aug 05 17:37:18 BST 2008
[INFO] Final Memory: 16M/36M
[INFO]
------------------------------------------------------------------------
Thanks,
Paul.
--
View this message in context:
http://www.nabble.com/Mysterious-exception-tp18835604p18835604.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]