You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael McCrann <Mi...@macquarie.com> on 2005/10/14 05:16:02 UTC

Transitive dependency on same jar file

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Transitive dependency on same jar file

Posted by Brett Porter <br...@gmail.com>.
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 <Mi...@macquarie.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org