简体   繁体   中英

How to resolve dependencies for custom Nutch plug-in?

I am struggling with Ivy and dependency resolution in Eclipse. I have created a custom plug-in for Nutch, which has dependencies on another project in my Eclipse workspace. Now when I build it it complains about the classes from that project. I presume the standard Eclipse mechanism in build classpath settings (where I've added that project as dependency project) doesn't work, so I have to define dependency via ivy.xml. How can I do that?

Old way is to : declare the dependencies inside the NUTCH_INSTALLATION/src/plugin/<your_plugin>/plugin.xml file.

If you want to use ivy : declare the dependencies inside <dependencies> tag in the NUTCH_INSTALLATION/src/plugin/<your_plugin>/ivy.xml file.

看看Nutch wiki的相关页面

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM