ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Unresolved dependencies
Date Tue, 03 Jul 2007 08:31:26 GMT
On 7/3/07, hezjing <hezjing@gmail.com> wrote:
>
> Created JIRA issue, IVY-555.
>
> The priority is not really major anyway... :-)


Thanks, we are now sure we won't forget that!

Xavier

On 7/3/07, Xavier Hanin <xavier.hanin@gmail.com> wrote:
> > On 7/3/07, hezjing <hezjing@gmail.com> wrote:
> > >
> > > 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?
> >
> >
> > Yes, the quick start tutorial was written with ivyrep as default
> repository,
> > in which commons modules were using apache as organization. We need to
> > review all the tutorials for the 2.x version.
> >
> > What you described is indeed a very useful information for the newbie
> > > like me, and it is good to put on the tutorial too :-)
> >
> >
> > Indeed, what would be useful too is a short doc explaining how to find
> > information with mvnrepository.com, and translate it in Ivy dependency
> > declaration. Could you please open an issue in JIRA for tutorial fixing?
> >
> > Xavier
> >
> > 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
> > >
> >
> >
> >
> > --
> > Xavier Hanin - Independent Java Consultant
> > Creator of Ivy, xooki and xoocode.org
> > More about me: http://xhab.blogspot.com/
> >
>
>
> --
>
> Hez
>



-- 
Xavier Hanin - Independent Java Consultant
Creator of Ivy, xooki and xoocode.org
More about me: http://xhab.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message