The following comment has been added to this issue:

     Author: Howard M. Lewis Ship
    Created: Fri, 17 Oct 2003 10:09 AM
       Body:
Did a fresh pull of Maven from CVS and a full, clean rebuild.

Seem to build a lot less now ... is that normal?

HiveMind build still fails:

C:\workspace\hivemind>maven multiproject:goal -Dgoal=dist
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2-SNAPSHOT

Attempting to download saxon-6.5.2.jar.
...............................
.
Starting the reactor...
Our processing order:
HiveMind Framework
HiveMind Library
+----------------------------------------
| Executing dist HiveMind Framework
| Memory: 2M/11M
+----------------------------------------
Attempting to download javassist-2.6.jar.
..................
.
Attempting to download servletapi-2.3.jar.
...
.
Attempting to download ant-1.5.1.jar.
.................................
.
Attempting to download xerces-2.2.1.jar.
......................................
.
Attempting to download oro-2.0.6.jar.
...
.
Attempting to download log4j-1.2.7.jar.
.............
.
multiproject:goal:
dist:build-setup:
    [delete] Deleting directory C:\workspace\hivemind\framework\target\distributions
    [mkdir] Created dir: C:\workspace\hivemind\framework\target\distributions

javadoc:generate:

. . .

dist:prepare-bin-filesystem:
    [delete] Deleting directory 
C:\workspace\hivemind\framework\target\commons-hivemind-1.0-alpha-3\bin\commons-hivemind-1.0-alpha-3
    [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 900 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:
    [delete] Deleting directory 
C:\workspace\hivemind\framework\target\commons-hivemind-1.0-alpha-3\src\commons-hivemind-1.0-alpha-3
    [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.2-SNAPSHOT/
Element... maven:reactor
Line...... 185
Column.... 9
Unable to obtain goal [dist:prepare-src-filesystem] -- file:/C:/Documents and 
Settings/Howard/.maven/plugins/maven-dist-plugin-1.4-SNAPSHOT/:92:50: <attainGoal> No 
goal [ant:g
enerate-build]
Total time: 1 minutes 56 seconds
Finished at: Fri Oct 17 10:38:05 EDT 2003

C:\workspace\hivemind>maven -g
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2-SNAPSHOT


Available [Plugins] / Goals
```````````````````````````
[artifact] ( NO DEFAULT GOAL )
  load .......................  ( NO DESCRIPTION )

[changes] ( NO DEFAULT GOAL )
  report ..................... Generate a changes report

[checkstyle] : Perform checkstyle checks
  report ..................... Perform checkstyle checks

[clean] : Remove all project artifacts
  clean ...................... Remove all project artifacts

[dist] : Build a complete distribution.
  build ...................... Build a complete distribution.
  build-bin .................. Build the binary distribution.
  build-setup ................ Set up directories for a distribution build
  build-src .................. Build the source distribution.
  deploy ..................... Deploy a distribution
  deploy-bin ................. Deploy a binary distribution
  deploy-snapshot ............ Deploy a snapshot distribution
  deploy-src ................. Deploy a source distribution
  prepare-bin-filesystem ..... Builds the binary distribution file system.
  prepare-src-filesystem ..... Builds the source distribution file system.

[ear] : Build an ear file
  deploy ..................... Deploys the ear to the remote repository
  deploy-snapshot ............ Deploys the snapshot version of  the ear to
                               remote repository
  ear ........................ Build an ear file
  generate-ear-descriptor .... Generates the ear descriptor
  init ....................... Initialise filesystem and other resources for an
                               ear
  install .................... Install the ear in the local repository
  install-snapshot ........... Install the snapshot version of the ear in the
                               local repository

[ejb] : Build an ejb file
  deploy ..................... Deploys the ejb to the remote repository
  deploy-snapshot ............ Deploys the snapshot version of the ejb to
                               remote repository
  ejb ........................ Build an ejb file
  ejb-client ................. Build a client ejb file
  init ....................... Initialize filesystem and other resources for an
                               ejb build
  install .................... Install the ejb in the local repository
  install-snapshot ........... Install the snapshot version of the ejb in the
                               local repository

[faq] : Generates FAQ xdoc files from FAQ XML documents

[jar] : Create the deliverable jar file.
  deploy ..................... Deploy a jar to the remote repository
  deploy-snapshot ............ Deploy a snapshot jar to the remote repository
  install .................... Install the jar in the local repository
  install-snapshot ........... Install a snapshot jar in the local repository
  jar ........................ Create the deliverable jar file.
  snapshot ................... Create a snapshot jar, ie '
                               id-YYYYMMDD.hhmmss.jar'

[java] ( NO DEFAULT GOAL )
  compile .................... Compile the project
  jar ........................ Create the deliverable jar file.
  jar-resources .............. Copy any resources that must be present in the
                               deployed JAR file
  prepare-filesystem ......... Create the directory structure needed to compile

[javadoc] ( NO DESCRIPTION )
  deploy ..................... Deploys the jar containing javadoc to the remote
                               repository
  deploy-snapshot ............ Deploys the snapshot version of jar containing
                               javadoc to remote repository
  install .................... Install the jar containing javadoc in the local
                               repository
  install-snapshot ........... Install the snapshot version of the jar
                               containing javadoc in the local repository

[jellydoc] : Generates the tag documentation
  doclet ..................... A doclet which outputs all the Jelly tag related
                               metadata as XML
  xml-doclet ................. Creates an XML representation of the doclet
                               information

[license] : Generate an XML file from the license file
  transfer ................... Generate a xml file from your license file

[maven-changelog-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate a changelog report

[maven-changes-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )

[maven-checkstyle-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )

[maven-developer-activity-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate developer and file activity reports

[maven-faq-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate FAQs

[maven-file-activity-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate developer and file activity reports

[maven-javadoc-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate API documentation

[maven-jdepend-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate a dependency report with JDepend

[maven-jellydoc-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generates the tag documentation

[maven-junit-report-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate a report from the test results

[maven-jxr-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate HTML cross reference sources

[maven-license-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate an XML file from the license.txt

[maven-linkcheck-plugin] ( NO DEFAULT GOAL )
  clearcache ................. Removes the cache file
  report-real ................ Generate link check results and then transform
                               to HTML

[maven-multiproject-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )

[maven-tasklist-plugin] ( NO DEFAULT GOAL )
  deregister .................  ( NO DESCRIPTION )
  report ..................... Generate a list of tasks from @todo tags in your
                               code

[multiproject] : Run the site goal of all subprojects
  artifact ................... Builds all artifacts for all subproject
  clean ...................... Clean all subprojects
  dependency-convergence-report  Generate report which shows how consistent are
                               the versions of artitfacts between projects
  deploy ..................... Run 'artifact':deploy for all subprojects
  deploy-snapshot ............ Run 'artifact':deploy-snapshot for all
                               subprojects
  goal ....................... Run a given goal on all projects
  install .................... Run 'artifact':install for all subprojects
  install-snapshot ........... Run 'artifact':install-snapshot for all
                               subprojects
  site ....................... Run the site goal of all subprojects

[plugin] : Build a plugin jar and install to the maven.repo.local
  deploy ..................... Install a specific unpacked plugin but no new jar
  download ................... download a plugin from a remote repo
  generate-docs .............. Generate navigation, goals and properties docs
  generate-goals ............. Generate goals.xml for the plugin
  generate-navigation ........ Generate navigation.xml for the plugin
  generate-properties ........ Generate properties.xml for the plugin
  install .................... Install the plugin jar, prepare Maven to expand
                               it locally and clear caches
  uninstall .................. Uninstall all versions of the plugin

[scm] ( NO DEFAULT GOAL )
  bootstrap-project .......... Bootstrap a project from SCM
  checkout-project ........... Checkout a project
  perform-release ............ Perform a release from SCM
  prepare-release ............ Prepare for a release in SCM
  update-project ............. Update a project from SCM

[site] : Generate the web site
  deploy ..................... deploy the generated site docs
  ear ........................ Create an EAR File from the generated site
  fsdeploy ................... Deploy the generated site by copying to the site
                               directory
  sshdeploy .................. Deploy the generated site docs using ssh
  war ........................ Create a WAR File from the generated site

[tasklist] ( NO DESCRIPTION )

[test] : Test the application
  compile .................... Compile the TestCases and TestSuites
  match ...................... Execute all the tests matching the given '
                               testmatch' variable
  match-test ................. [deprecated] please use the test:match goal
                               instead
  prepare-filesystem ......... Create the needed directory structure
  single ..................... Execute a single test defined using the '
                               testcase' variable
  single-test ................ [deprecated] please use the test:single goal
                               instead
  test ....................... Test the application
  test-resources ............. Copy any resources that must be present for run
                               tests
  ui ......................... Starts the Swing TestRunner front end

[touchstone-goal-A] ( NO DESCRIPTION )

[touchstone-goal-B] ( NO DESCRIPTION )

[touchstone-goal-C] ( NO DESCRIPTION )

[touchstone-goal-D] ( NO DESCRIPTION )

[touchstone-goal-E] ( NO DESCRIPTION )

[touchstone-partner-goal-A] ( NO DESCRIPTION )

[war] : Build a war file
  clean ...................... Remove all artifacts created by war plugin
  deploy ..................... Deploys the war to the remote repository
  deploy-snapshot ............ Deploys the snapshot version of  the war to
                               remote repository
  init ....................... Initialize the file system and attain any
                               necessary goals
  install .................... Install the war in the local repository
  install-snapshot ........... Install the snapshot version of the war in the
                               local repository
  war ........................ Build a war file
  webapp ..................... Build a webapp directory

[xdoc] : Generate html project documentation xdoc sources
  copy-resources ............. copy static resources for use in xdocs generated
                               html
  copy-user-resources ........ Copy user provided resources to docs destination
  generate-from-pom .......... Generates xdocs for site based on project
                               descriptor
  init ....................... Generates the directory structure required for
                               xdocs
  jelly-init ................. Set up jelly xdoc requirements
  jelly-transform ............ transform xdocs using jelly/jsl rather than dvsl
  performJSL ................. Allows the LinkCheck plugin to xdoc a single
                               directory
  transform .................. Generate html project documentation xdoc sources
  validate ................... Validate xdocs match the schema


Non documented goals :

  artifact:load
  checkstyle:init
  checkstyle:license
  ear:load
  javadoc
  javadoc:generate
  javadoc:jar
  jellydoc:init
  maven-changelog-plugin:deregister
  maven-changelog-plugin:register
  maven-changes-plugin:deregister
  maven-changes-plugin:register
  maven-checkstyle-plugin:deregister
  maven-checkstyle-plugin:register
  maven-developer-activity-plugin:deregister
  maven-developer-activity-plugin:register
  maven-faq-plugin:deregister
  maven-faq-plugin:register
  maven-file-activity-plugin:deregister
  maven-file-activity-plugin:register
  maven-javadoc-plugin:deregister
  maven-javadoc-plugin:register
  maven-jdepend-plugin:deregister
  maven-jdepend-plugin:register
  maven-jellydoc-plugin:deregister
  maven-jellydoc-plugin:register
  maven-junit-report-plugin:deregister
  maven-junit-report-plugin:register
  maven-jxr-plugin:deregister
  maven-jxr-plugin:register
  maven-license-plugin:deregister
  maven-license-plugin:register
  maven-linkcheck-plugin:deregister
  maven-linkcheck-plugin:register
  maven-linkcheck-plugin:report
  maven-multiproject-plugin:deregister
  maven-multiproject-plugin:register
  maven-multiproject-plugin:report
  maven-tasklist-plugin:deregister
  maven-tasklist-plugin:register
  multiproject:artifact-callback
  multiproject:create-nav
  multiproject:create-overview-page
  multiproject:deploy-callback
  multiproject:deploy-snapshot-callback
  multiproject:install-callback
  multiproject:install-snapshot-callback
  multiproject:site-init
  plugin:test
  scm:cvs-checkout-project
  scm:cvs-prepare-release
  scm:cvs-update-project
  scm:validate
  site:generate
  site:init
  site:run-reports
  tasklist
  test:eclipse
  touchstone-goal-A
  touchstone-goal-B
  touchstone-goal-C
  touchstone-goal-D
  touchstone-goal-E
  touchstone-partner-goal-A
  war:load
  xdoc:dump-report-settings
  xdoc:register-reports

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-934


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

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             plugin-dist
             plugin-multiproject
   Fix Fors:
             1.0-rc2
   Versions:
             1.0-beta-10
             1.0-rc1
             1.0-rc2

   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to