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 2003/12/01 03:24:56 UTC

[jira] Deleted: (MAVEN-934) multiproject and dist ton't mix

Message:

  The following issue has been deleted from JIRA.

---------------------------------------------------------------------

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-934
    Summary: multiproject and dist ton't mix
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven

   Assignee: 
   Reporter: Howard M. Lewis Ship

    Created: Wed, 15 Oct 2003 10:32 AM
    Updated: Fri, 17 Oct 2003 12:52 AM
Environment: Sun JDK 1.4, Windows XP

Description:
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?




---------------------------------------------------------------------
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