You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by rmatthews <rm...@nakedobjects.org> on 2007/05/01 17:30:23 UTC

Failed to satisfy dependency but can't set it up

I have set up Ivy to with a dependency on hibernate (version 3.2.3.ga), but
one of its dependencies is jta from Sun.  However this does not exist on the
repository, and hence it fails with the following message.

 [NOT FOUND  ] [ javax.transaction | jta | 1.0.1B ]/jta.jar[jar]
[ivy:resolve] ibiblio: tried
http://www.ibiblio.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] ::              FAILED DOWNLOADS            ::
[ivy:resolve] :: ^ see resolution messages for details  ^ ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: [ javax.transaction | jta | 1.0.1B ]/jta.jar[jar]
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::

Despite hunting around I have not found how I can add this jar file (which I
have downloaded from the Sun site) to the local repository so this
dependencies can be satisfied.

Can anybody explain how I go about this.

Many thanks

Robert Matthews
-- 
View this message in context: http://www.nabble.com/Failed-to-satisfy-dependency-but-can%27t-set-it-up-tf3675645.html#a10270875
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Failed to satisfy dependency but can't set it up

Posted by Xavier Hanin <xa...@gmail.com>.
On 5/1/07, rmatthews <rm...@nakedobjects.org> wrote:
>
> I have set up Ivy to with a dependency on hibernate (version 3.2.3.ga), but
> one of its dependencies is jta from Sun.  However this does not exist on the
> repository, and hence it fails with the following message.
>
>  [NOT FOUND  ] [ javax.transaction | jta | 1.0.1B ]/jta.jar[jar]
> [ivy:resolve] ibiblio: tried
> http://www.ibiblio.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] ::              FAILED DOWNLOADS            ::
> [ivy:resolve] :: ^ see resolution messages for details  ^ ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: [ javax.transaction | jta | 1.0.1B ]/jta.jar[jar]
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
>
> Despite hunting around I have not found how I can add this jar file (which I
> have downloaded from the Sun site) to the local repository so this
> dependencies can be satisfied.
>
> Can anybody explain how I go about this.
You can either use the install task, but in this case you first need
to configure a way to access your jta.jar through a dependency
resolver, which is not really straightforward. Otherwise you can just
copy your files to the appropriate location: Ivy should tell you where
it looks for the file when it fails, so you should pretty easily find
where the file should go. Since JTA has no dependency, you don't even
need metadata for it.

Another option is to add this maven 2 repo to your settings:
http://dist.codehaus.org/mule/dependencies/maven2

Because they host jta (among other useful things).

HTH,

Xavier

>
> Many thanks
>
> Robert Matthews
> --
> View this message in context: http://www.nabble.com/Failed-to-satisfy-dependency-but-can%27t-set-it-up-tf3675645.html#a10270875
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>


-- 
Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/