You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Andy Xue <an...@gmail.com> on 2012/04/13 11:06:11 UTC

Retrieve sources and javadoc for hadoop-core package

Hi:

Does anyone know how I can download the sources and javadoc for the Ivy
hadoop-core package?
I searched on the web and it suggests something like the following:
===========================================================
In ivy.xml:
Replace

<dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
conf="*->default">
    ......
</dependency>

with

<dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0" conf="*->
*sources,javadoc,*default">
    ......
</dependency>
==================================
and clear the ivy cache before resolving Ivy dependencies again.

Unfortunately it doesn't work. Could anyone help? Appreciate it.

Andy

Re: Retrieve sources and javadoc for hadoop-core package

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Well I suppose there is only one way to find out.

cd $NUTCH_HOME
ant clean-cache
ant runtime

If the ivy configuration is correct (which it looks like) then you should
see the new dependencies being downloaded and you can use them.

On Sat, Apr 14, 2012 at 12:52 AM, Andy Xue <an...@gmail.com> wrote:

> Hi Lewis:
>
> Thanks for the reply.
> I just did an IvyDE resolve in Eclipse and it finished without emitting any
> error messages.
> However it just didn't download the sources and javadoc for hadoop-core.
>
> So my question is: Is this the correct way to set up the confiugration?
> =================================
> In ivy.xml:
>  Replace
>
> <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> conf="*->default">
>    ......
> </dependency>
>
> with
>
> <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> conf="*->sources,javadoc,default">
>   ......
> </dependency>
> ==================================
> and clear the ivy cache before resolving Ivy dependencies again.
>
>
> Regards
> Andy
>
> On 13 April 2012 20:51, Lewis John Mcgibbney <lewis.mcgibbney@gmail.com
> >wrote:
>
> > What is not working? What output are you getting from the compiler?
> >
> > I have had hellish problems with Ivy in the past trying to grab maven
> > snapshots but this doesn't seem quite as tricky.
> >
> > lewis
> >
> > On Fri, Apr 13, 2012 at 10:06 AM, Andy Xue <an...@gmail.com>
> wrote:
> >
> > > Hi:
> > >
> > > Does anyone know how I can download the sources and javadoc for the Ivy
> > > hadoop-core package?
> > > I searched on the web and it suggests something like the following:
> > > ===========================================================
> > > In ivy.xml:
> > > Replace
> > >
> > > <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> > > conf="*->default">
> > >    ......
> > > </dependency>
> > >
> > > with
> > >
> > > <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> > > conf="*->
> > > *sources,javadoc,*default">
> > >    ......
> > > </dependency>
> > > ==================================
> > > and clear the ivy cache before resolving Ivy dependencies again.
> > >
> > > Unfortunately it doesn't work. Could anyone help? Appreciate it.
> > >
> > > Andy
> > >
> >
> >
> >
> > --
> > *Lewis*
> >
>



-- 
*Lewis*

Re: Retrieve sources and javadoc for hadoop-core package

Posted by Andy Xue <an...@gmail.com>.
Never mind. I've checked the maven repository and hadoop-core does not
contain any javadoc or sources at the first place.

Thanks for your help
Andy


On 14 April 2012 09:52, Andy Xue <an...@gmail.com> wrote:

> Hi Lewis:
>
> Thanks for the reply.
> I just did an IvyDE resolve in Eclipse and it finished without emitting
> any error messages.
> However it just didn't download the sources and javadoc for hadoop-core.
>
> So my question is: Is this the correct way to set up the confiugration?
> =================================
> In ivy.xml:
>  Replace
>
> <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> conf="*->default">
>     ......
> </dependency>
>
> with
>
> <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> conf="*->sources,javadoc,default">
>    ......
> </dependency>
> ==================================
> and clear the ivy cache before resolving Ivy dependencies again.
>
>
> Regards
> Andy
>
>
> On 13 April 2012 20:51, Lewis John Mcgibbney <le...@gmail.com>wrote:
>
>> What is not working? What output are you getting from the compiler?
>>
>> I have had hellish problems with Ivy in the past trying to grab maven
>> snapshots but this doesn't seem quite as tricky.
>>
>> lewis
>>
>> On Fri, Apr 13, 2012 at 10:06 AM, Andy Xue <an...@gmail.com> wrote:
>>
>> > Hi:
>> >
>> > Does anyone know how I can download the sources and javadoc for the Ivy
>> > hadoop-core package?
>> > I searched on the web and it suggests something like the following:
>> > ===========================================================
>> > In ivy.xml:
>> > Replace
>> >
>> > <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
>> > conf="*->default">
>> >    ......
>> > </dependency>
>> >
>> > with
>> >
>> > <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
>> > conf="*->
>> > *sources,javadoc,*default">
>> >    ......
>> > </dependency>
>> > ==================================
>> > and clear the ivy cache before resolving Ivy dependencies again.
>> >
>> > Unfortunately it doesn't work. Could anyone help? Appreciate it.
>> >
>> > Andy
>> >
>>
>>
>>
>> --
>> *Lewis*
>>
>
>

Re: Retrieve sources and javadoc for hadoop-core package

Posted by Andy Xue <an...@gmail.com>.
Hi Lewis:

Thanks for the reply.
I just did an IvyDE resolve in Eclipse and it finished without emitting any
error messages.
However it just didn't download the sources and javadoc for hadoop-core.

So my question is: Is this the correct way to set up the confiugration?
=================================
In ivy.xml:
 Replace

<dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
conf="*->default">
    ......
</dependency>

with

<dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
conf="*->sources,javadoc,default">
   ......
</dependency>
==================================
and clear the ivy cache before resolving Ivy dependencies again.


Regards
Andy

On 13 April 2012 20:51, Lewis John Mcgibbney <le...@gmail.com>wrote:

> What is not working? What output are you getting from the compiler?
>
> I have had hellish problems with Ivy in the past trying to grab maven
> snapshots but this doesn't seem quite as tricky.
>
> lewis
>
> On Fri, Apr 13, 2012 at 10:06 AM, Andy Xue <an...@gmail.com> wrote:
>
> > Hi:
> >
> > Does anyone know how I can download the sources and javadoc for the Ivy
> > hadoop-core package?
> > I searched on the web and it suggests something like the following:
> > ===========================================================
> > In ivy.xml:
> > Replace
> >
> > <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> > conf="*->default">
> >    ......
> > </dependency>
> >
> > with
> >
> > <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> > conf="*->
> > *sources,javadoc,*default">
> >    ......
> > </dependency>
> > ==================================
> > and clear the ivy cache before resolving Ivy dependencies again.
> >
> > Unfortunately it doesn't work. Could anyone help? Appreciate it.
> >
> > Andy
> >
>
>
>
> --
> *Lewis*
>

Re: Retrieve sources and javadoc for hadoop-core package

Posted by Lewis John Mcgibbney <le...@gmail.com>.
What is not working? What output are you getting from the compiler?

I have had hellish problems with Ivy in the past trying to grab maven
snapshots but this doesn't seem quite as tricky.

lewis

On Fri, Apr 13, 2012 at 10:06 AM, Andy Xue <an...@gmail.com> wrote:

> Hi:
>
> Does anyone know how I can download the sources and javadoc for the Ivy
> hadoop-core package?
> I searched on the web and it suggests something like the following:
> ===========================================================
> In ivy.xml:
> Replace
>
> <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> conf="*->default">
>    ......
> </dependency>
>
> with
>
> <dependency org="org.apache.hadoop" name="hadoop-core" rev="1.0.0"
> conf="*->
> *sources,javadoc,*default">
>    ......
> </dependency>
> ==================================
> and clear the ivy cache before resolving Ivy dependencies again.
>
> Unfortunately it doesn't work. Could anyone help? Appreciate it.
>
> Andy
>



-- 
*Lewis*