Created pull request for this : https://github.com/apache/nutch/pull/246
Sent: Saturday, November 25, 2017 at 4:34 PM
From: "Sebastian Nagel" <[email protected]>
To: [email protected]
Subject: Re: Build path errors(Eclipse) in the latest nutch develop
Hi Semyon,

yes, I can reproduce the problems:

1. missing/duplicate build path entries.
It's trivial to fix, please open a Jira issue for this.

2. package declaration in plugin protocol-interactiveselenium:
directory and package do not fit. Interestingly, when building
with ant the directory does not matter the class files are placed
according to the package declaration. Should be fixed anyway.
Please open a second Jira for this. Thanks!

3. unit tests failing in Eclipse
That may happen if plugins are involved. Instead run the unit tests
from command line via
ant test
or configure a Java Ant builder in Eclipse.

There are also short-hands to run single unit tests:

(in main)
ant compile-core-test runtime
runtime/local/bin/nutch junit org.apache.nutch.net.TestURLNormalizers

(for plugins, here parse-tika)
ant compile-core-test
cd src/plugin/parse-tika/
ant test

Best,
Sebastian



On 11/25/2017 02:30 PM, Semyon Semyonov wrote:
> Hi Sebastian,
>
> I always run ant eclipse, otherwise I have hundreds errors.
> I took the latest version with git clone and have these problems with Eclipse and Unit Tests.
>
> Cant you reproduce it on your machine?
>  
>  
> *Sent:* Saturday, November 25, 2017 at 2:22 PM
> *From:* "Sebastian Nagel" <[email protected]>
> *To:* [email protected]
> *Subject:* Re: Build path errors(Eclipse) in the latest nutch develop
> Hi Semyon,
>
> did you run
> ant eclipse
> to refresh the .classpath file?
>
> Any commit may add new plugins or change a library dependency.
> In doubt, you should run it from time to time.
>
> Best,
> Sebastian
>
>
> On 11/24/2017 11:33 AM, Semyon Semyonov wrote:
>> I had to delete these paths in Eclipse and 
>> replace package org.apache.nutch.protocol.interactiveselenium with package
> org.apache.nutch.protocol.interactiveselenium.handlers in the code.Now it works.
>>
>> Obviously, IT IS NOT a solution.  Can somebody check?
>> In addition, the unit tests are failed.     [junit] Test org.apache.nutch.net.TestURLNormalizers
> FAILED
>>  
>>
>> Sent: Thursday, November 23, 2017 at 2:36 PM
>> From: "Semyon Semyonov" <[email protected]>
>> To: [email protected]
>> Subject: Build path errors(Eclipse) in the latest nutch develop
>> Hello all,
>>
>> I have tried to run the latest git(git clone http://github.com/apache/nutch.git) version of Nutch
> in Eclipse, but I got several build path errors.
>>
>> Description    Resource    Path    Location    Type
>> Build path contains duplicate entry: 'src/plugin/protocol-htmlunit/src/java/' for project
> 'nutch'    nutch        Build path    Build Path Problem
>> Project 'nutch' is missing required source folder: 'src/plugin/parse-replace/src/java/'    nutch  
>      Build path    Build Path Problem
>> Project 'nutch' is missing required source folder: 'src/plugin/parse-replace/src/test/'    nutch  
>      Build path    Build Path Problem
>>
>> Any ideas?
>>
>> Thanks.
>> Semyon.
>>
>  
 

Reply via email to