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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> !DSPAM:602,461b66bd276271894314596!
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to