You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wojtek Ciesielski <cc...@interia.pl> on 2007/04/10 12:27:46 UTC
overriding version of dependent library
Hi all,
How can I override version number of a dependent library defined in my
pom.xml file? I use org.hibernate:hibernate:jar:3.2.2.ga which depends
on javax.transaction:jta:jar:1.0.1B while I'd like to use jta-1.1.jar
(because it's needed elsewhere). How can I force a dependency to stop
complaining about lack of older jta version and use a new one?
Any help will be greatly appreciated, thanks in advance,
Wojtek
----------------------------------------------------------------------
Nawet 50MB w jednym mailu >>> http://link.interia.pl/f19e7
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: overriding version of dependent library
Posted by franz see <fr...@gmail.com>.
Good day,
In addition, you can simply specify jta 1.1 as a direct dependency of your
maven project ( without excluding jta from your hibernate dependnecy) and
maven won't bother looking for other versions of jta :)
Cheers,
Franz
oching wrote:
>
> You could try <exclusions> in your hiberrnate dependency so as not to
> download the 1.0.1B jta jar it dependes on, and leave the dependency that
> uses the jta 1.1 version as is. :)
>
> You can check out this link http://maven.apache.org/pom.html for more
> info.
>
> Thanks,
> Deng
>
>> Hi all,
>>
>> How can I override version number of a dependent library defined in my
>> pom.xml file? I use org.hibernate:hibernate:jar:3.2.2.ga which depends
>> on javax.transaction:jta:jar:1.0.1B while I'd like to use jta-1.1.jar
>> (because it's needed elsewhere). How can I force a dependency to stop
>> complaining about lack of older jta version and use a new one?
>>
>> Any help will be greatly appreciated, thanks in advance,
>> Wojtek
>>
>> ----------------------------------------------------------------------
>> Nawet 50MB w jednym mailu >>> http://link.interia.pl/f19e7
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> !DSPAM:602,461b66bd276271894314596!
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/overriding-version-of-dependent-library-tf3552202s177.html#a9932209
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: overriding version of dependent library
Posted by oc...@exodus.exist.com.
You could try <exclusions> in your hiberrnate dependency so as not to
download the 1.0.1B jta jar it dependes on, and leave the dependency that
uses the jta 1.1 version as is. :)
You can check out this link http://maven.apache.org/pom.html for more info.
Thanks,
Deng
> Hi all,
>
> How can I override version number of a dependent library defined in my
> pom.xml file? I use org.hibernate:hibernate:jar:3.2.2.ga which depends
> on javax.transaction:jta:jar:1.0.1B while I'd like to use jta-1.1.jar
> (because it's needed elsewhere). How can I force a dependency to stop
> complaining about lack of older jta version and use a new one?
>
> Any help will be greatly appreciated, thanks in advance,
> Wojtek
>
> ----------------------------------------------------------------------
> Nawet 50MB w jednym mailu >>> http://link.interia.pl/f19e7
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> !DSPAM:602,461b66bd276271894314596!
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org