Starting with Nutch 1.3 and with Nutch 2.0, you can now use Nutch as a Maven dependency. Just include the below block of code in your Maven pom.xml.

In addition to this, please see here for ALL Nutch artifacts on the Sonatype Nexus Maven Repository.

<dependency>
<groupId>org.apache.nutch</groupId>
<artifactId>nutch</artifactId>
<version>1.3</version>
<exclusions>
  <exclusion>
     <groupId>com.sun.jdmk</groupId>
     <artifactId>jmxtools</artifactId>
  </exclusion>
  <exclusion>
     <groupId>com.sun.jmx</groupId>
     <artifactId>jmxri</artifactId>
  </exclusion>
</dependency>

Nutch Maven poms are created by Nutch committers running the command:

ant deploy

This generates a top-level pom.xml, with the necessary deps. Also, it currently pushes the Nutch staging artifacts to Apache's Nexus repository, which upon successful VOTE'ing, is then pushed to Maven Central.

NutchMavenSupport (last edited 2011-11-21 14:39:33 by LewisJohnMcgibbney)