You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/07/22 03:42:25 UTC

[jira] Commented: (MPMULTIPROJECT-40) Hidden ClassCastException below ReactorTag.getSortedProjects() with multiple entries in maven.multiproject.includes

The following comment has been added to this issue:

     Author: dion gillard
    Created: Wed, 21 Jul 2004 9:41 PM
       Body:
Are you sure there are no issues with the project and it's properties being loaded? I have multiple excludes/includes in the multiproject properties all the time and they work fine...
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPMULTIPROJECT-40?page=comments#action_22063

---------------------------------------------------------------------
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: Wed, 21 Jul 2004 9:41 PM

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org