You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Omair-Inam Abdul-Matin <oi...@cs.uwaterloo.ca> on 2004/07/11 17:56:13 UTC
Reactor: continuing a goal despite unresolved dependencies
I have a multi-project stindex consisting of two subprojects,
stindex/stindex and stindex/storagemanager
stindex depends on storagemanager
Now I have a clean-all goal as follows:
<project
xmlns:m="jelly:maven"
xmlns:j="jelly:core">
<goal name="clean-all">
<m:reactor
basedir="${basedir}/.."
includes="*/project.xml"
excludes="stindex-build/project.xml"
goals="clean"
banner="Cleaning"
ignoreFailures="false"
/>
</goal>
...
</project>
If I run clean-all with the storagemanager jar not in the repository
then maven fails:
C:\eclipse\workspace\stindex-new\stindex-build>maven clean-all
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc4
Starting the reactor...
Our processing order:
A storagemanager library
A cool spatio-temporal index library
+----------------------------------------
| Cleaning A storagemanager library
| Memory: 2M/3M
+----------------------------------------
build:start:
clean-all:
build:start:
clean:clean:
[delete] Deleting directory
C:\eclipse\workspace\stindex-new\storagemanager\target
+----------------------------------------
| Cleaning A cool spatio-temporal index library
| Memory: 3M/4M
+----------------------------------------
Attempting to download storagemanager-0.1-b4.jar.
WARNING: Failed to download storagemanager-0.1-b4.jar.
BUILD SUCCESSFUL
Total time: 4 seconds
Finished at: Sun Jul 11 11:51:28 EDT 2004
I'd like in this case to be able to either:
1. clean the project dirs even though the storagemanager jar does not
exist (since in this case stindex doesn't *really* depend on storagemanager)
2. if that's not possible then to have reactor build and install the
storagemanager jar when it finds that the jar does not exist then clean
out the stindex project.
Is that possible?
Omair
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Reactor: continuing a goal despite unresolved dependencies
Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Hi,
Check in JIRA, I think it's a known issue that multiproject:clean requires
all dependencies.
Carlos Sanchez
A Coruña, Spain
Oness Project
http://oness.sourceforge.net
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of
> Omair-Inam Abdul-Matin
> Sent: Sunday, July 11, 2004 5:56 PM
> To: users@maven.apache.org
> Subject: Reactor: continuing a goal despite unresolved dependencies
>
> I have a multi-project stindex consisting of two subprojects,
> stindex/stindex and stindex/storagemanager stindex depends on
> storagemanager
>
> Now I have a clean-all goal as follows:
>
> <project
> xmlns:m="jelly:maven"
> xmlns:j="jelly:core">
> <goal name="clean-all">
> <m:reactor
> basedir="${basedir}/.."
> includes="*/project.xml"
> excludes="stindex-build/project.xml"
> goals="clean"
> banner="Cleaning"
> ignoreFailures="false"
> />
>
> </goal>
>
> ...
>
> </project>
>
> If I run clean-all with the storagemanager jar not in the
> repository then maven fails:
>
> C:\eclipse\workspace\stindex-new\stindex-build>maven clean-all
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0-rc4
>
> Starting the reactor...
> Our processing order:
> A storagemanager library
> A cool spatio-temporal index library
> +----------------------------------------
> | Cleaning A storagemanager library
> | Memory: 2M/3M
> +----------------------------------------
> build:start:
>
> clean-all:
> build:start:
>
> clean:clean:
> [delete] Deleting directory
> C:\eclipse\workspace\stindex-new\storagemanager\target
> +----------------------------------------
> | Cleaning A cool spatio-temporal index library
> | Memory: 3M/4M
> +----------------------------------------
> Attempting to download storagemanager-0.1-b4.jar.
> WARNING: Failed to download storagemanager-0.1-b4.jar.
> BUILD SUCCESSFUL
> Total time: 4 seconds
> Finished at: Sun Jul 11 11:51:28 EDT 2004
>
>
> I'd like in this case to be able to either:
>
> 1. clean the project dirs even though the storagemanager jar
> does not exist (since in this case stindex doesn't *really*
> depend on storagemanager) 2. if that's not possible then to
> have reactor build and install the storagemanager jar when it
> finds that the jar does not exist then clean out the stindex project.
>
> Is that possible?
>
> Omair
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org