<url> element in POM is not used by maven to download dependencies but as info if a dependency cannot be shared on ibiblio repository (because of it's license, example : j2ee.jar)
If you want maven to use jar from your filesystem, use maven override http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependencies You can put those jars in a /lib dir of your project and commit them to SCM. Next, you only have to set <dependency> <id>jfacetext</id> </dependency> and those properties : maven.jar.override = on maven.jar.jfacetext= ${basedir}/lib/jfacetext.jar Nico. > Hi All, > > I'm trying to write a project.xml that, for various reasons, references > a JAR on the local filesystem. However, when I define something like the > following in my POM: > > <dependency> > <artifactId>jfacetext</artifactId> > <groupId>eclipse</groupId> > <version>3.0.0</version> > <type>jar</type> > <jar>jfacetext.jar</jar> > <url>file:/C:/eclipse/plugins/org.eclipse.jface.text_3.0.0/</url> > </dependency> > > Maven fails to obtain the required dependencies. The value of the URL > element is generated from a java.io.File.toUrl() call so I assume it is > formatted correctly. Is there any reason Maven is not parsing the URL > above properly? > > First of all, does Maven append the jar name to the URL dependency > property or does the URL directly over-ride the name *and* location of > the dependency? I assume the former but the documentation never makes > this explicitly clear. > > Kind regards > -- Ricardo > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Our name has changed. Please update your address book to the following format: "[EMAIL PROTECTED]". This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
