环境是CentOS 6.6 x64
html
一、下载Eclipse,不用安装,直接解压后就能用。给Eclipse安装组件:apache
All of the following should be available from the Eclipse Marketplace. However if not, you can download them throughout Eclipse as follows.
Once you've set up Eclipse, download Subclipse as per here. N.B. If you experience an error with the 1.8.x release, try 1.6.x. This tends to solve compatibility problems.
Grab IvyDE plugin for Eclipse as here.
Grab m2e plugin for Eclipse hereeclipse
Marketplace在Eclipse的Help菜单中,单击便可进入。maven
二、首先是在nutch官网下载1.9版本,之因此不下载最新版是由于nutch教程说2.x版本不稳定,而我做为一个新手,就没选择最新版。下载完后,我把压缩文件放在eclipse的workspace中解压,而后重命名文件夹名字为nutch_1.9。如下的命令都是在这个目录下执行的。修改nutch_1.9文件夹中的ivy/ivysettings.xml
<property name="repo.maven.org"
value="http://maven.oschina.net/content/groups/public/"
override="false"ide
/>
修改一下源,下载速度会更快
spa
三、安装“蚂蚁”——ant:.net
# yum install antregexp
而后再安装ant-apache-regexp,这是为防止再用ant构建工程时出错xml
# yum install ant-apache-regexphtm
四、构建eclipse工程
$ ant eclipse
五、把构建好的工程Import到Eclipse中,具体细节能够看上面的nutch教程。
完成。