dev@glassfish.java.net

Re: bootstrap-all and commons-loggin-api.jar

From: Matthew L Daniel <mdaniel_at_scdi.com>
Date: Wed, 7 Sep 2005 14:57:32 -0400

Please find a patch below that cures this issue for me.

I have not yet learned enough of the build system to know why it would
succeed for anyone else.

  -- /v\atthew
===8<===
Index: maven.xml
===================================================================
RCS file: /cvs/glassfish/bootstrap/maven.xml,v
retrieving revision 1.8
diff -u -r1.8 maven.xml
--- maven.xml 31 Aug 2005 20:10:19 -0000 1.8
+++ maven.xml 7 Sep 2005 16:43:15 -0000
@@ -45,7 +45,36 @@
         <maven:reactor basedir="."
                includes="**/project-src.xml"
                banner="Downloading binaries for building from source project"
+ postProcessing='true'
                ignoreFailures="false"/>
+ <!--
+ q,v, http://maven.apache.org/reference/user-guide.html#Multi_Project_Builds_and_the_Reactor
+ -->
+ <j:set var='srcPom' value='${reactorProjects[0]}' />
+ <!-- we have to use the getVariable b/c Jelly thinks
+ ${commons-logging-api.jar} is commons subtract ... which is 0
+ q.v. http://jira.codehaus.org/browse/MAVEN-1521
+ -->
+ <ant:copy overwrite='true'
+ file="${srcPom.getDependencyPath('commons-beanutils:commons-beanutils')}"
+ tofile="${context.getVariable('commons-beanutils.jar')}" />
+ <ant:copy overwrite='true'
+ file="${srcPom.getDependencyPath('commons-collections:commons-collections')}"
+ tofile="${context.getVariable('commons-collections.jar')}" />
+ <ant:copy overwrite='true'
+ file="${srcPom.getDependencyPath('commons-digester:commons-digester')}"
+ tofile="${context.getVariable('commons-digester.jar')}" />
+ <ant:copy overwrite='true'
+ file="${srcPom.getDependencyPath('commons-el:commons-el')}"
+ tofile="${context.getVariable('commons-el.jar')}" />
+ <!--
+ use commons-logging-api here because post-bootstrap goal moves
+ it to ${commons-logging.jar} (which is actually the root cause
+ for the 4 preceeding lines, too)
+ *-->
+ <ant:copy overwrite='true'
+ file="${srcPom.getDependencyPath('commons-logging:commons-logging')}"
+ tofile="${context.getVariable('commons-logging-api.jar')}" />
     </goal>
 
     <postGoal name="bootstrap-all">
===8<===