環境是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教程。
完成。