I would suggest that the new tag could take an URL to specify a location that 
is not available in the remote or local repository. I know you can specify some 
properties to do that but I would like to have it in the POM.

-Andy


-----Original Message-----
From: Vincent Massol [mailto:[EMAIL PROTECTED]
Sent: Sun 11/21/2004 2:14 AM
To: 'Maven Developers List'
Subject: [PROPOSAL] Ading a new tag to <dependency>?
 
Hi Maven devs,

I think there's a need to allow specifying when some artifacts are only to
be looked for in the local repository. For example, in a multiproject the
local repository is used to share private artifacts between the subprojects.
These private artifacts are not meant to be uploaded to a Maven remote repo.

Currently, Maven tries to download them every time and the timeout (about 3
seconds for me) is a pain and is not normal. For example, this is what we
get:

+----------------------------------------
| Executing cargo:dist Cargo Sample for Ant
| Memory: 8M/10M
+----------------------------------------
Tentative de t?l?chargement de cargo-ant-0.4-SNAPSHOT.jar.
Artifact /cargo/jars/cargo-ant-0.4-SNAPSHOT.jar doesn't exists in remote
repository, but it exists locally
Tentative de t?l?chargement de cargo-sample-java-0.4-SNAPSHOT.jar.
Artifact /cargo/jars/cargo-sample-java-0.4-SNAPSHOT.jar doesn't exists in
remote repository, but it exists locally
Tentative de t?l?chargement de cargo-core-0.4-SNAPSHOT.jar.
Artifact /cargo/jars/cargo-core-0.4-SNAPSHOT.jar doesn't exists in remote
repository, but it exists locally

One possible solution (backward compatible) would be to add a
<local>true|false</local> (defaults to false) element to the <dependency>
element.

Would this be acceptable for CVS HEAD of m1? Is there something planned
along these lines for m2?

Thanks
-Vincent


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


Reply via email to