Merci!  Works a treat

James 

-----Original Message-----
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 24, 2006 1:39 PM
To: Maven Users List
Subject: Re: Migrating to M2 - local jar overrides

You can use the system scope : 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

Emmanuel

Shute, James a écrit :
> Hi,
> 
> I'm experimenting with moving over to Maven 2 from 1.0.2 and have 
> drawn a blank on what the M2 way to do local jar overrides is.
> 
> The reason I particularly need to do this is we use a 3rd party 
> library that's basically just a thin layer on top of some native 
> (windows) libraries.  For compilation I can happily put the jar in the 
> repository, download from there and all is well.  But to run the tests 
> the jar MUST match what is installed locally on the box, which can 
> vary from developer to developer - normally only by minor version no 
> but that's still enough to stop it working if the wrong one is used.
> 
> So when using 1.0.2 this in the project.properties did the trick nicely:
> 
> maven.jar.override=on
> maven.jar.tibrvj=C:/Program Files/TIBCO/TIBRV/lib/tibrvj.jar
> 
> Along with a dependency like this
> 
>       <dependency>
>               <groupId>tibco</groupId>
>               <artifactId>tibrvj</artifactId>
>               <version>local</version>
>       </dependency>
> 
> Searching through the mailing lists hasn't got me very far, other than 
> a few statements that seem to say local overrides aren't supported 
> under M2.
> 
> Can anybody suggest a way forward?  
> 
> many thanks
> 
> James
> 
> ----------------------------------------------------------------------
> -------- This message is intended only for the personal and 
> confidential use of the designated recipient(s) named above.  If you are not 
> the intended recipient of this message you are hereby notified that any 
> review, dissemination, distribution or copying of this message is strictly 
> prohibited.  This communication is for information purposes only and should 
> not be regarded as an offer to sell or as a solicitation of an offer to buy 
> any financial product, an official confirmation of any transaction, or as an 
> official statement of Lehman Brothers.  Email transmission cannot be 
> guaranteed to be secure or error-free.  Therefore, we do not represent that 
> this information is complete or accurate and it should not be relied upon as 
> such.  All information is subject to change without notice.
> 
> 
> ---------------------------------------------------------------------
> 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]






------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


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

Reply via email to