Hello,
I encountered the trouble, too.
But my solution was installing jta-1.0.1B by manual.

If you don't want to depend on jta when you use hibernate as dependency,
you may try the following scripts,
<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate</artifactId>
        <version>3.1.3</version>
        <exclusions>
                <exclusion>
                        <artifactId>javax.transaction</artifactId>
                        <groupId>jta</groupId>
                </exclusion>
        </exclusions>
</dependency>

a cup of Java, cheers!
Sha Jiang


Saminda Abeyruwan-3 wrote:
> 
> Hi All,
> 
> I have a use case where hibernate involves. In this scenario, I'm using
> Maven2 to download hibernate 3.1.3 jar. If we look at the  pom for this
> jar;
> there is a transitive  dependency to javax.transaction/jta [jta-1.0.1B].
> This, jar is not distributable and not available in repos and we have to
> manually download it from Sun. Thus, we use geronimo-spec-jta, which is
> quite enough for us.
> 
> Problem is since the pom says to download jta-1.0.1B, Maven2 build does
> not
> complete automatically. Is there a way to pom.xml or any  other way to say
> that when downloading  hibernate-3.1.3.jar; not to take account the
> transitive dependency jta-1.0.1B.
> 
> Thank you
> 
> Saminda
> 
> -- 
> Saminda Abeyruwan
> 
> Software Engineer
> WSO2 - www.wos2.or
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Transitive-Dependencies-tf2805728s177.html#a7829956
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