Maven will always try to download dependencies from the project.xml in the directory 
from where
you run Maven before it attempts to execute any goals.  You should only specify the 
dependencies
for the subprojects that need them.  The top level project.xml should only contain 
dependencies
that all of its subprojects need.

WM


--- Daniel Frey <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> Newbie question: I've read the introduction to maven as described in
> http://maven.apache.org/reference/user-guide.html#Multi_Project_Builds_and_t
> he_Reactor. Then I copied from another source a new goal into my maven.xml.
> 
>     <goal name="all:java:compile">
>         <maven:reactor basedir=".." includes="ch.*/**/project.xml"
> goals="java:compile"
>             banner="Compiling:" ignoreFailures="false"/>
>     </goal>
> 
> Build fails with the following messages:
>    __  __
>   |  \/  |__ _Apache__ ___
>   | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>   |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2
> 
>   Attempting to download ch.xmatrix.resource-api-1.0.jar.
>   WARNING: Failed to download ch.xmatrix.resource-api-1.0.jar.
>   Attempting to download ch.xmatrix.gui.splash-api-1.0.jar.
>   WARNING: Failed to download ch.xmatrix.gui.splash-api-1.0.jar.
>   The build cannot continue because of the following unsatisfied
> dependencies:
> 
>   ch.xmatrix.resource-api-1.0.jar (no download url specified)
>   ch.xmatrix.gui.splash-api-1.0.jar (no download url specified)
> 
> My multi-project structure consists of:
> 
>   ch.xmatrix.application
>   ch.xmatrix.resource-api
>   ch.xmatrix.resource-impl
>   ch.xmatrix.gui.splash-impl
>   ch.xmatrix.gui.splash-api
> 
> The two ch.*-apis are dependencies of (the main) application. I hoped that
> reactor would sort these out an build these first, as they are part of my
> multi-project directory structure. Why does maven -- before starting the
> reactor -- try to download these dependent libraries? Instead of building
> them?
> 
> Thanks for any hints.
> Daniel Frey
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to