ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hezjing <hezj...@gmail.com>
Subject Re: Unresolved dependencies
Date Tue, 03 Jul 2007 01:59:46 GMT
Hi Xavier

Yes, the problem is resolved when I specified the dependency as below,

<dependency org="commons-lang" name="commons-lang" rev="2.3" />

It's time to update the ivy.xml in Quick Start tutorial?


What you described is indeed a very useful information for the newbie
like me, and it is good to put on the tutorial too :-)

Thank you!


On 7/2/07, Xavier Hanin <xavier.hanin@gmail.com> wrote:
> On 7/2/07, hezjing <hezjing@gmail.com> wrote:
> >
> > Hi
> >
> > I created a new directory and have the following ivy.xml and build.xml:
> >
> > ivy.xml
> > <ivy-module version="1.0">
> >   <info organisation="jayasoft" module="my" />
> >   <dependencies>
> >     <dependency org="apache" name="commons-lang" rev="2.0" />
> >   </dependencies>
> > </ivy-module>
> >
> > build.xml
> > <project xmlns:ivy="antlib:fr.jayasoft.ivy.ant" name="my">
> >   <target name="resolve">
> >     <ivy:retrieve />
> >   </target>
> > </project>
> >
> >
> > When run (> ant resolve), I got the following error:
> >
> > ::::::::::::::::::::::::::::::::::::::::::::::
> > ::          UNRESOLVED DEPENDENCIES         ::
> > ::::::::::::::::::::::::::::::::::::::::::::::
> > :: [ apache | commons-lang | 2.0 ]: not found
> > ::::::::::::::::::::::::::::::::::::::::::::::
> >
> >
> > Do you have any idea of what could be the problem?
>
>
> It's most probably due to your settings, but it's difficult to say.
>
> From the Maven repository (http://repo1.maven.org/maven2/), how do we
> > identify the appropriate attribute of "org", "name" and "rev" in
> > ivy.xml?
>
>
> If your settings use the maven 2 repository, you should indeed follow the
> maven 2 naming conventions. For apache commons modules, the org is the same
> as the module name:
> <dependency org="commons-lang" name="commons-lang" rev="2.0" />
>
> To know the names for any module in maven 2 repository, I suggest using
> mvnrepository.com, search for whatever you want, and when you find, you will
> see an example of maven 2 dependency declaration. For instance on this page:
> http://www.mvnrepository.com/artifact/commons-lang/commons-lang
>
> You will see that:
> <dependency>
>    <groupId>commons-lang</groupId>
>    <artifactId>commons-lang</artifactId>
>    <version>20030203.000129</version>
> </dependency>
>
> Then to convert this in Ivy dependency declaration it's very easy: the
> groupId is the org, the artifactId is the module name, and the version is
> the module revision:
> <dependency org="commons-lang" name="commons-lang" rev="20030203.000129" />
>
> HTH,
>
> Xavier
>
> --
> >
> > Newbie
> >
>
>
>
> --
> Xavier Hanin - Independent Java Consultant
> Creator of Ivy, xooki and xoocode.org
> More about me: http://xhab.blogspot.com/
>


-- 

Hez

Mime
View raw message