As well as being released in Binary and Source (the latter only for the 2.x series), all releases of Nutch are now packaged as Maven dependencies.

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>${nutch.version}</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.

N.B Replace ${nutch.version} above with the version of Nutch you wish to use.

  • No labels