If I did not miss-understand the maven dependencies' mechanism in
project.xml :


With <dependencies> <dependency> <id>DEPEND</id> <version>1.0</version> <url>http://address/plugin/</url> </dependency> </dependencies> Maven will first try to download "http://address/plugin/DEPEND/jars/DEPEND -1.0.jar" under $MAVEN_HOME_LOCAL/repository/DEPEND/jars/DEPEND-1.0.jar

(I'm new to Maven, so take this with a grain of salt)


I first had the same impression as you, but after investigation it seems that the url tag is just used to suggest that URL to the user if the download failed, so that the user can download it manually (e.g. if the license does not allow the jar to be put in a repository).

If you want a plugin to be downloaded from an alternate repository, what I know works is to declare it in a file build.properties in your home directory (~/build.properties on Unix, not sure about windows). Example:

maven.repo.remote=http://nice.sf.net/maven,http://www.ibiblio.org/maven

(ibiblio is the default maven repository)

Daniel



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



Reply via email to