You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Michael Scharf <nu...@scharf-software.com> on 2005/08/19 16:28:52 UTC

Q: How to setup eclipse projects to acccess nutch?

Hi,

I'd like take to look at nutch using eclipse. I have subclipse
installed and I see the nutch repository:

   http://svn.apache.org/repos/asf/lucene/nutch

It's not clear to me what to check out and how
to setup eclipse projects....

Q: what to check out (to see the java source)?
Q: are there somwhere .project files?


Michael

Re: Q: How to setup eclipse projects to access Nutch?

Posted by Ken Krugler <kk...@transpac.com>.
Hi Michael,

>there are no .project files.
>Just 'checkout as new java project' the trunk folder and may name 
>the project nutch. :)
>After that you need to setup src/java as source folder, since by 
>default the root is setup as sourcefolder.
>Further more add  /lib/* as libraries.
>That's it. Keep in mind that nutch use may a newer ant version as 
>you older eclipse has...

A few of the issues we ran into while using Eclipse to build/debug Nutch...

1. Eclipse will "find" the build.xml files, and so you can wind up 
with Eclipse and Ant both generating .class files. We wound up 
deleting these.

2. If the runtime classpaths aren't set up correctly, you won't be 
able to find the /conf directory or the /plugins directory.

Since we have a separate NutchDriver project that we use to run/debug 
Nutch, in the configuration we create to do debugging, we had to add 
entries for the Nutch directory and the conf directory inside of 
Nutch.

3. Since the plug-ins create their own .jar files, they needed to be 
separate projects. But Eclipse doesn't let you have projects inside 
of projects (no nested project folders), so we moved the plug-ins 
outside of the /Nutch directory. But then we had to add custom Ant 
.xml files such that the .jar files would get copied into the 
location where Nutch expects to find them.

-- Ken

PS - It was also a lot of fun getting Subclipse and Ant to work 
properly with Eclipse; it feels a bit bleeding edge. We've run into 
numerous situations where things weren't working properly, but 
quitting Eclipse and restarting, or doing some magic random 
combination of refreshing and clean builds made things work again. 
Uggh.

PPS - We use SmartSVN to get the initial sources downloaded. But make 
sure you're not running Eclipse/subclipse when you do this.

>>Hi,
>>
>>I'd like take to look at nutch using eclipse. I have subclipse
>>installed and I see the nutch repository:
>>
>>   http://svn.apache.org/repos/asf/lucene/nutch
>>
>>It's not clear to me what to check out and how
>>to setup eclipse projects....
>>
>>Q: what to check out (to see the java source)?
>>Q: are there somwhere .project files?
>>
>>Michael


-- 
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

Re: Q: How to setup eclipse projects to acccess nutch?

Posted by Stefan Groschupf <sg...@media-style.com>.
Hi,
there are no .project files.
Just 'checkout as new java project' the trunk folder and may name the  
project nutch. :)
After that you need to setup src/java as source folder, since by  
default the root is setup as sourcefolder.
Further more add  /lib/* as libraries.
That's it. Keep in mind that nutch use may a newer ant version as you  
older eclipse has...

HTH
Stefan
Am 19.08.2005 um 16:28 schrieb Michael Scharf:

> Hi,
>
> I'd like take to look at nutch using eclipse. I have subclipse
> installed and I see the nutch repository:
>
>   http://svn.apache.org/repos/asf/lucene/nutch
>
> It's not clear to me what to check out and how
> to setup eclipse projects....
>
> Q: what to check out (to see the java source)?
> Q: are there somwhere .project files?
>
>
> Michael
>
>