Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0-rc3
-
Fix Version/s: 1.0-rc3
-
Component/s: None
-
Labels:None
-
Environment:Windows XP, JDK 1.4.2
-
Number of attachments :
Description
I've just built MAVEN-1_0-BRANCH today (04-30-2004) and I've noticed some strange behavior: I have two goals which use multiproject:install. I set the 'maven.multiproject.includes' property to the POMS that need to be built during each goal. The goal directly below is called first and then the goal below that is called next (as part of the same build).
Now 1.0-rc3 from a couple weeks ago doesn't have this problem (and neither do any earlier releases like 1.0-rc2) but now it looks like when the 'install-samples' is called (the second goal below), the first maven.multiproject.includes value is used because the same components are built again instead of the new ones.
So basically what happens is: all modules defined with ${component.install.includes} are built twice and the modules defined by ${sample.install.includes} are never called.
<goal name="install-components">
<j:set var="maven.multiproject.includes" value="${component.install.includes}"/>
<attainGoal name="multiproject:install"/>
</goal>
the second goal:
<goal name="install-samples">
<j:set var="maven.multiproject.includes"
value="${sample.install.includes}"/>
<attainGoal name="multiproject:install"/>
</goal>
it is a side effect of the way plugins are loaded that the first one sets at all. This will be corrected in future versions of Maven, but not 1.0.
Instead of using j:set, you need to use the maven:set tag to set plugin properties from Jelly. I have added this to the FAQ in CVS