ant nutch mysql,如何在Intellij Idea中打开Ant项目(Nutch Source)?

  • Post author:
  • Post category:mysql


I want to open Nutch 2.1 source file (http://www.eu.apache.org/dist/nutch/2.1/) at Intellij IDEA. Here is an explanation of how to open it at Eclipse: http://wiki.apache.org/nutch/RunNutchInEclipse

However I am not familiar with Ant (I use Maven) and when I open that source file many classes are not known by Intellij.

i.e.:

org.apache.hadoop.mapreduce.JobContext

org.apache.gora.mapreduce.GoraMapper

How can I add them to library or what should I do?

解决方案

I finally figure out how to do it. Now our team can dev nutch in IntellIJ

The process we do

Get nutch source from apache.org

Import nutch source in intellij

Get Dependencies by Ant

Run ant runtime

Run ant test

Import dependencies into Intellij

File > Project Structures

Library > Ivy

Click to Plus button

Select all libraries in apache-nutch-2.3/build/lib

Now we have a project with nutch source and all dependencies