1) Add the dependancy to your project.xml file
2) add the override properties to the project.properties
3) This is optional, but I also include a preGoal to copy my "private" libs into my repository tree, because not all plugins respect the override.
Here are some examples (copied out of one of my own projects):
project.xml
===========================
<dependency>
<groupId>java</groupId>
<artifactId>javamail</artifactId>
<version>1.3.1</version>
<type>jar</type>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>
project.properties =========================== maven.jar.override=on maven.jar.javamail=${basedir}/src/libs/javamail-1.3.1.jar
maven.xml
===========================
<preGoal name="java:compile">
<attainGoal name="copy-private-jars" />
</preGoal><goal name="copy-private-jars">
<mkdir dir="${maven.repo.local}/java/jars" />
<copy file="${maven.src.dir}/libs/javamail-1.3.1.jar" toDir="${maven.repo.local}/java/jars"/>
</goal>
Hope that helps, and I'd like to encurage the Maven developers to clean this up (maybe make it part of the core so that other plugins respect the overrides even iof they don't specifically code for it).
- Brill Pappin
[EMAIL PROTECTED] wrote:
I have them all in local repository, but it still tries to download.. :-( ??
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 10:11 AM To: Maven Users List Subject: Re: How to ask Maven to use jars from local drive ?
Put them in your local repository. -- dIon Gillard, Multitask Consulting
<[EMAIL PROTECTED]> wrote on 05/03/2004 03:20:19 PM:
Hi all,?
I just started using Maven, I have all the required jars in local
drive, how do I ask maven to use them from my drive and not to download
Thanks, Chaithanya
Confidentiality Notice
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Confidentiality Notice
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
