Differences between revisions 2 and 3
Revision 2 as of 2011-11-21 14:39:33
Size: 1026
Comment:
Revision 3 as of 2013-06-06 03:37:30
Size: 1188
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Starting with Nutch 1.3 and with Nutch 2.0, you can now use Nutch as a [[http://maven.apache.org/|Maven]] dependency. Just include the below block of code in your Maven pom.xml. 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 [[http://maven.apache.org/|Maven]] dependencies.

Just include the below block of code in your Maven pom.xml.
Line 9: Line 11:
<version>1.3</version> <version>${nutch.version}</version>
Line 27: Line 29:

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

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.

NutchMavenSupport (last edited 2013-06-06 03:37:30 by LewisJohnMcgibbney)