Maven Repositories

stephen mallette edited this page Jun 27, 2013 · 2 revisions

TinkerPop projects are based on Maven. For each project, both snapshot and release artifacts are deployed to public repositories for general consumption.

A release is an official version of a project that represents a stable instance of the code base. Stable releases are deployed to The Central Repository. Projects using Maven automatically include this repository by default, however it can be explicitly defined as:

<repository>
  <id>central</id>
  <name>Maven Repository Switchboard</name>
  <url>http://repo1.maven.org/maven2</url>
  <releases><enabled>true</enabled></releases>
  <snapshots><enabled>false</enabled></snapshots>
</repository>

A snapshot is periodically deployed during the development process and should be considered usable, but possibly unstable for production use. Snapshots provide a way to try newly developed features, prior to official release. Snapshots are deployed to Sonatype. To utilized a snapshot in a Maven-based project, simply include the following repository in the pom.xml:

<repository>
  <id>sonatype-oss-snapshots</id>
  <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  <releases><enabled>false</enabled></releases>
  <snapshots><enabled>true</enabled></snapshots>
</repository>