I have added the dependency in ivy.xml and mentioned my jar in plugin.xml and it ran successfully. But after sometime out of blue I again began to get same reason and I had to clean my eclipse and runtime and build it again and then error was resolved.... and it happend 2 times already.
Is this a problem of eclipse or Nutch 2.x source configuration ? Regards, Imran On Fri, Jun 14, 2013 at 2:06 PM, Tejas Patil <[email protected]>wrote: > On Fri, Jun 14, 2013 at 1:58 AM, imran khan <[email protected] > >wrote: > > > Ok for ivy dependency I will add my 3rd party jar in <dependencies> , > where > > do I have to define it in plugin.xml ? > > > > Look at how commons-net dependency is defined here: > > http://svn.apache.org/viewvc/nutch/trunk/src/plugin/protocol-ftp/plugin.xml?revision=1175075&view=markup > > > > > > And for 2nd option like parse-swf plugin , I will just place my jar in > lib > > directory of plugin and add its refrence in <runtime> ? > > > > Yes. Add reference in plugin.xml as done here: > > http://svn.apache.org/viewvc/nutch/trunk/src/plugin/parse-swf/plugin.xml?revision=1175075&view=markup > > > > Regards, > > Imran > > > > > > On Fri, Jun 14, 2013 at 1:19 PM, Tejas Patil <[email protected] > > >wrote: > > > > > Adding things to the classpath in Eclipse won't help. Look into > > > NUTCH_HOME/src/plugin/parse-swf/plugin.xml. That plugin uses an > external > > > jar : javaswf.jar. This applies if you want the jar to be with the > > > codebase. > > > If your jar needs to be picked up from maven repo, you will have to > > specify > > > it in ivy.xml and plugin.xml. > > > > > > > > > On Fri, Jun 14, 2013 at 12:43 AM, imran khan <[email protected] > > > >wrote: > > > > > > > I need that jar in one of my custom Nutch Plugin. > > > > > > > > > > > > On Fri, Jun 14, 2013 at 12:20 PM, imran khan < > [email protected] > > > > >wrote: > > > > > > > > > Greetings, > > > > > > > > > > I want to add 3rd party jar file in my existing Nutch 2.x source. I > > > have > > > > > tried adding it in Libraries dialog of my Eclipse via 'Add External > > > Jars' > > > > > but I am still getting of pakacage errors on import of that jar on > > > > > sourcefile where I want to use this Jar. > > > > > > > > > > Could you please help me in adding 3rd party Jar to my Nutch 2.x > > source > > > > in > > > > > Eclipse. > > > > > > > > > > Regards > > > > > Imran > > > > > > > > > > > > > > >

