Re: Transitive dependency on same jar file

2005-10-13 Thread Brett Porter
It will use the version nearest to your project that matches all given
ranges (if no ranges are used, it is simply the nearest).

We unfortunately had to omit other resolution strategies from this
release due to time constraints.

- Brett

On 10/14/05, Michael McCrann [EMAIL PROTECTED] wrote:
 Hi,

 How does the transative dependency mechanism handle different versions of the 
 same jar file?

 Example,

 In my pom.xml I say that I have a dependency on log4j.jar version 1.2.6. Now, 
 nother dependency in my pom.xml
 has dependency on log4j.jar version 1.2.8.

 Which version of log4j will be compiled against?
 If my project built a war file, which version of log4j would be in it?

 Regards

 Michael McCrann


 NOTICE
 This e-mail and any attachments are confidential and may contain copyright 
 material of Macquarie Bank or third parties. If you are not the intended 
 recipient of this email you should not read, print, re-transmit, store or act 
 in reliance on this e-mail or any attachments, and should destroy all copies 
 of them. Macquarie Bank does not guarantee the integrity of any emails or any 
 attached files. The views or opinions expressed are the author's own and may 
 not reflect the views or opinions of Macquarie Bank.


 -
 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]



RE: Transitive dependency on same jar file

2005-10-13 Thread Michael McCrann
Brett,

What is a 'range'.

Michael

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Friday, 14 October 2005 1:25 PM
To: Maven Users List
Subject: Re: Transitive dependency on same jar file


It will use the version nearest to your project that matches all given
ranges (if no ranges are used, it is simply the nearest).

We unfortunately had to omit other resolution strategies from this
release due to time constraints.

- Brett

On 10/14/05, Michael McCrann [EMAIL PROTECTED] wrote:
 Hi,

 How does the transative dependency mechanism handle different versions of the 
 same jar file?

 Example,

 In my pom.xml I say that I have a dependency on log4j.jar version 1.2.6. Now, 
 nother dependency in my pom.xml
 has dependency on log4j.jar version 1.2.8.

 Which version of log4j will be compiled against?
 If my project built a war file, which version of log4j would be in it?

 Regards

 Michael McCrann


 NOTICE
 This e-mail and any attachments are confidential and may contain copyright 
 material of Macquarie Bank or third parties. If you are not the intended 
 recipient of this email you should not read, print, re-transmit, store or act 
 in reliance on this e-mail or any attachments, and should destroy all copies 
 of them. Macquarie Bank does not guarantee the integrity of any emails or any 
 attached files. The views or opinions expressed are the author's own and may 
 not reflect the views or opinions of Macquarie Bank.


 -
 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]


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



Re: Transitive dependency on same jar file

2005-10-13 Thread Brett Porter
You can specify a version using the range syntax:

[2.0,)
[1.0,1.5]

etc.

- Brett

On 10/14/05, Michael McCrann [EMAIL PROTECTED] wrote:
 Brett,

 What is a 'range'.

 Michael

 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]
 Sent: Friday, 14 October 2005 1:25 PM
 To: Maven Users List
 Subject: Re: Transitive dependency on same jar file


 It will use the version nearest to your project that matches all given
 ranges (if no ranges are used, it is simply the nearest).

 We unfortunately had to omit other resolution strategies from this
 release due to time constraints.

 - Brett

 On 10/14/05, Michael McCrann [EMAIL PROTECTED] wrote:
  Hi,
 
  How does the transative dependency mechanism handle different versions of 
  the same jar file?
 
  Example,
 
  In my pom.xml I say that I have a dependency on log4j.jar version 1.2.6. 
  Now, nother dependency in my pom.xml
  has dependency on log4j.jar version 1.2.8.
 
  Which version of log4j will be compiled against?
  If my project built a war file, which version of log4j would be in it?
 
  Regards
 
  Michael McCrann
 
 
  NOTICE
  This e-mail and any attachments are confidential and may contain copyright 
  material of Macquarie Bank or third parties. If you are not the intended 
  recipient of this email you should not read, print, re-transmit, store or 
  act in reliance on this e-mail or any attachments, and should destroy all 
  copies of them. Macquarie Bank does not guarantee the integrity of any 
  emails or any attached files. The views or opinions expressed are the 
  author's own and may not reflect the views or opinions of Macquarie Bank.
 
 
  -
  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]


 -
 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]