You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Cam Bazz <ca...@gmail.com> on 2011/07/19 22:11:12 UTC

error during test

Hello,

I am getting this error:

Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.72
sec <<< FAILURE!
testPluginConfiguration(org.apache.nutch.plugin.TestPluginSystem)
Time elapsed: 0.479 sec  <<< FAILURE!
junit.framework.AssertionFailedError: no plugin directory setuped..
	at junit.framework.Assert.fail(Assert.java:47)

Of course it is because I dont have the plugin.folders setup. But
where? I have tried to put it in nutch-default.xml and also
nutch-site.xml under test, but still get the same error.

Any hints?

Best

Re: error during test

Posted by Cam Bazz <ca...@gmail.com>.
Hello,

I opened the project with netbeans, specifically pom.xml - and it
imported the project. (Netbeans 7.0) - then right clicked in the
dependencies, and downloaded dependencies.

When I make a mvn compile, it will start testing. During testing, it
wont find plugin.folders - and I believe, this is because I could not
add the /conf to classpath.

However, I have disabled the tests from pom.xml, and now nutch builds
with netbeans 7.0 - and it will compile.

The reason I want to use an IDE is that when I do editing, I want to
be able to run the code, without compiling zillions of classes again.
An ant build takes 17s, and that is far too long.

I was told that nutch was built with ivy. is there a better way to
compile ant then ant? I have tried every major ide, various ivy
plugins, and I still could not get a development environment up, which
makes my progress slow. My current netbeans setup, needs to be little
more configured, since it wont show plugins folder as source. Is it a
common practice, if I make a different project from the plugin I am
working on?

Best Regards,
C.B.






On Wed, Jul 20, 2011 at 12:19 AM, lewis john mcgibbney
<le...@gmail.com> wrote:
> hi C.B.,
>
> At what stage are these tests failing? Have you built the project? If you
> could provide more info it would be great. What ant command are you running
> etc
>
> On Tue, Jul 19, 2011 at 9:11 PM, Cam Bazz <ca...@gmail.com> wrote:
>
>> Hello,
>>
>> I am getting this error:
>>
>> Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.72
>> sec <<< FAILURE!
>> testPluginConfiguration(org.apache.nutch.plugin.TestPluginSystem)
>> Time elapsed: 0.479 sec  <<< FAILURE!
>> junit.framework.AssertionFailedError: no plugin directory setuped..
>>        at junit.framework.Assert.fail(Assert.java:47)
>>
>> Of course it is because I dont have the plugin.folders setup. But
>> where? I have tried to put it in nutch-default.xml and also
>> nutch-site.xml under test, but still get the same error.
>>
>> Any hints?
>>
>> Best
>>
>
>
>
> --
> *Lewis*
>

Re: error during test

Posted by lewis john mcgibbney <le...@gmail.com>.
hi C.B.,

At what stage are these tests failing? Have you built the project? If you
could provide more info it would be great. What ant command are you running
etc

On Tue, Jul 19, 2011 at 9:11 PM, Cam Bazz <ca...@gmail.com> wrote:

> Hello,
>
> I am getting this error:
>
> Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.72
> sec <<< FAILURE!
> testPluginConfiguration(org.apache.nutch.plugin.TestPluginSystem)
> Time elapsed: 0.479 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: no plugin directory setuped..
>        at junit.framework.Assert.fail(Assert.java:47)
>
> Of course it is because I dont have the plugin.folders setup. But
> where? I have tried to put it in nutch-default.xml and also
> nutch-site.xml under test, but still get the same error.
>
> Any hints?
>
> Best
>



-- 
*Lewis*