On Feb 8, 2008 7:58 PM, Brown, Carlton <[EMAIL PROTECTED]>
wrote:

> Xavier I did read this tutorial, but it seems to assume that the reader
> has downloaded and unzipped some source code, in particular the critical
> build.xml.  I guess I missed it, where can I get that?

All tutorials are packaged with any distribution of Ivy, in src/example, as
explained here:
http://ant.apache.org/ivy/history/latest-milestone/tutorial.html

Xavier

>
>
> -----Original Message-----
> From: Xavier Hanin [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 08, 2008 1:48 PM
> To: [email protected]
> Subject: Re: What is the first entry point to the Ivy lifecycle?
>
> Have you tried following the tutorials where a publish is involved, like
> this one:
> http://ant.apache.org/ivy/history/latest-milestone/tutorial/dependence.h
> tml
>
> This should help you see how you usually use publish. If what you want
> is
> only installing a module in your repository, the install task is better
> suited, or you can do a mere file copy.
>
> Xavier
>
> On Feb 8, 2008 7:37 PM, Brown, Carlton <[EMAIL PROTECTED]>
> wrote:
>
> > Hi all,
> >
> >
> >
> > I am trying to publish a jar to my repository for the very first time.
> > I am getting errors indicating that the module is not in my cache
> (which
> > it is not, because it is a brand new jar that never existed before
> > today.)
> >
> >
> >
> > When I look at the Ivy lifecycle diagram, it seems cyclic with no
> entry
> > points other than the public repository:
> >
> > http://ant.apache.org/ivy/history/trunk/principle.html
> >
> > I can see how artifacts transition between states, but not how it
> enters
> > the cache for the first time.
> >
> >
> >
> > I suspect maybe it is <ivy:resolve>, but the document does not say
> this.
> > It only says that resolve retrieves dependencies.
> >
> >
> >
> > What I tried is a <ivy:publish> task which is failing with this error.
> >
> > java.lang.IllegalStateException: ivy file not found in cache for
> > ccrt#hello-A;1.0: please resolve dependencies before delivering
> > (ivy-cache\resolved-ccrt-hello-A-1.0.xml)
> >
> >
> >
> > From this message, it seems that <publish> is trying to read some
> > information from the cache.  As I mentioned before, I don't see how
> the
> > artifact is populated into the cache for the first time.
> >
> >
> >
> > Help appreciated, this is very frustrating.
> >
> > -Carlton
> >
> >
> >
> >
> > -----------------------------------------
> > ====================================================
> > This message contains PRIVILEGED and CONFIDENTIAL
> > information that is intended only for use by the
> > named recipient. If you are not the named recipient,
> > any disclosure, dissemination, or action based on
> > the contents of this message is prohibited. In such
> > case please notify us and destroy and delete all
> > copies of this transmission.  Thank you.
> > ====================================================
>
>
>
>
> --
> Xavier Hanin - Independent Java Consultant
> http://xhab.blogspot.com/
> http://ant.apache.org/ivy/
> http://www.xoocode.org/
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Reply via email to