The following comment has been added to this issue:
Author: Jerome Lacoste
Created: Thu, 22 Jul 2004 3:43 AM
Body:
Not sure if the project directly related to the includes.
I just see that others have the same exception so the problem may be not well
identified.
I've put some debugging info on what type is casted without success. That might help a
person knowledgeable.
I think some of the other issues include testcases. That should help fir those and I
will test the fix on my project.
PS: how should I see if there was a problem loading the other project(s)? I didn't see
other exceptions. I will look for error messages, but I haven't seen any.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPMULTIPROJECT-40?page=comments#action_22075
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPMULTIPROJECT-40
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPMULTIPROJECT-40
Summary: Hidden ClassCastException below ReactorTag.getSortedProjects() with
multiple entries in maven.multiproject.includes
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-multiproject-plugin
Versions:
1.0
Assignee: dion gillard
Reporter: Jerome Lacoste
Created: Sun, 18 Jul 2004 9:58 PM
Updated: Thu, 22 Jul 2004 3:43 AM
Description:
I am getting an error when trying to set up a multiproject build for the cruisecontrol
project.
My root project.properties containes:
maven.multiproject.includes=main/project.xml,reporting/jsp/project.xml
But I always only get the main project discovered leading to the following output:
Our processing order:
CruiseControl (main)
I've tried various combinations, using *, using */* etc.. but only the main sub
project gets found.
I ran a maven -X and saw the following error in the aforementioned configuration:
[...]
multiproject:projects-init:
[echo] Gathering project list
Starting the reactor...
Using userBuildPropertiesFile: /home/jerome/build.properties
Using projectPropertiesFile:
/home/jerome/Dev/CruiseControl/cruisecontrol.new/main/project.properties
Using projectBuildPropertiesFile:
/home/jerome/Dev/CruiseControl/cruisecontrol.new/main/build.properties
Using userBuildPropertiesFile: /home/jerome/build.properties
Using projectPropertiesFile:
/home/jerome/Dev/CruiseControl/cruisecontrol.new/project.properties
Using projectBuildPropertiesFile:
/home/jerome/Dev/CruiseControl/cruisecontrol.new/build.properties
Using userBuildPropertiesFile: /home/jerome/build.properties
Using projectPropertiesFile:
/home/jerome/Dev/CruiseControl/cruisecontrol.new/reporting/jsp/project.properties
Using projectBuildPropertiesFile:
/home/jerome/Dev/CruiseControl/cruisecontrol.new/reporting/jsp/build.properties
Unexpected error evaluating expression
java.lang.ClassCastException
at org.apache.maven.MavenUtils.integrateMapInContext(MavenUtils.java:820)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:240)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenUtils.getProjects(MavenUtils.java:290)
at
org.apache.maven.jelly.tags.maven.ReactorTag.getSortedProjects(ReactorTag.java:400)
at org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:296)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:634)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
at org.apache.maven.cli.App.doMain(App.java:486)
at org.apache.maven.cli.App.main(App.java:1215)
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:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Note:
using
maven.multiproject.includes=main/project.xml
or
maven.multiproject.includes=reporting/jsp/project.xml
do NOT result in the problem.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]