You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Howard M. Lewis Ship" <hl...@comcast.net> on 2003/10/15 17:03:28 UTC

multiproject using goal dist

I'm trying to whip together something so that I can support binary and source distros for my
project.

What I thought I would do is invoke "dist" in each sub-project, and add a postGoal to copy the
distros up to a directory of my master project.

First step is to see what "dist" does in this context ... 

bash-2.05b$ maven multiproject:goal -Dgoal=dist
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

Starting the reactor...
Our processing order:
HiveMind Framework
HiveMind Library
+----------------------------------------
| Executing dist HiveMind Framework
| Memory: 3M/11M
+----------------------------------------
multiproject:goal:
Overriding previous definition of reference to clover.classpath
dist:build-setup:
    [mkdir] Created dir: C:\workspace\hivemind\framework\target\distributions

xdoc:init:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to c:\workspace\hivemind\framework/target/classes

java:jar-resources:

test:prepare-filesystem:

. . .

javadoc:generate:

dist:prepare-bin-filesystem:
    [mkdir] Created dir:
C:\workspace\hivemind\framework\target\commons-hivemind-1.0-alpha-3\bin\commons-hivemind-1.0-alpha-3
    [echo]
      +-------------------------------------------------------+
      | C R E A T I N G  B I N A R Y  D I S T R I B U T I O N |
      +-------------------------------------------------------+

    [copy] Copying 1 file to
C:\workspace\hivemind\framework\target\commons-hivemind-1.0-alpha-3\bin\commons-hivemind-1.0-alpha-3
    [copy] Copying 880 files to
C:\workspace\hivemind\framework\target\commons-hivemind-1.0-alpha-3\bin\commons-hivemind-1.0-alpha-3
\docs

dist:build-bin:
    [tar] Building tar:
C:\workspace\hivemind\framework\target\distributions\commons-hivemind-1.0-alpha-3.tar
    [gzip] Building:
C:\workspace\hivemind\framework\target\distributions\commons-hivemind-1.0-alpha-3.tar.gz
    [delete] Deleting:
C:\workspace\hivemind\framework\target\distributions\commons-hivemind-1.0-alpha-3.tar
    [zip] Building zip:
C:\workspace\hivemind\framework\target\distributions\commons-hivemind-1.0-alpha-3.zip

dist:prepare-src-filesystem:
    [mkdir] Created dir:
C:\workspace\hivemind\framework\target\commons-hivemind-1.0-alpha-3\src\commons-hivemind-1.0-alpha-3
    [echo]
      +-------------------------------------------------------+
      | C R E A T I N G  S O U R C E  D I S T R I B U T I O N |
      +-------------------------------------------------------+

    [copy] Copying 3 files to
C:\workspace\hivemind\framework\target\commons-hivemind-1.0-alpha-3\src\commons-hivemind-1.0-alpha-3

BUILD FAILED
File...... file:/C:/Documents and
Settings/Howard/.maven/plugins/maven-multiproject-plugin-1.1-SNAPSHOT/
Element... maven:reactor
Line...... 174
Column.... 9
Unable to obtain goal [dist:prepare-src-filesystem] -- file:/C:/Documents and
Settings/Howard/.maven/plugins/maven-dist-plugin-1.3-SNAPSHOT/:106:62: <ant:move> Warning: Could
not find file C:\workspace\hivemind\framework\build.xml to copy.
Total time: 2 minutes 4 seconds
Finished at: Wed Oct 15 10:52:28 EDT 2003

bash-2.05b$


I looked at the code referenced in the error:

    <ant:available property="maven.dist.build.xml.avail"
               file="${basedir}/build.xml"/>

    <j:choose>
      <j:when test="${maven.dist.build.xml.avail}">
        <ant:copy todir="${maven.dist.src.assembly.dir}" file="build.xml"/>
      </j:when>
      <j:otherwise>
        <attainGoal name="ant:generate-build"/>
        <ant:move 
          file="build.xml"
          tofile="${maven.dist.src.assembly.dir}/build.xml"/>
      </j:otherwise>
    </j:choose>

Strangely, the output doesn't indicate that "ant:generate-build" goal was
attained/executed/whatever, so you can see why the generated build.xml would be missing. Any
suggestions?

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org