Integrating the legacy Peer Library
This document describes how to integrate the Datomic peer library with your Java or Clojure project. This section only applies to Datomic versions 1.0.6711 or lower. For current instructions using the latest Datomic versions and peer API see Integrating the Peer Library.
Maven Setup
There are two ways to install the Datomic libraries in your local Maven repository. You can configure your project to use the my.datomic.com maven repository or run an install script included with the Datomic distribution.
Datomic Maven Repository
Datomic Pro users can get the Datomic peer library directly from the Maven repository hosted at my.datomic.com.
See the download and integration instructions by logging into your account at https://my.datomic.com.
Installing from Datomic Distribution
You can install the Datomic peer library in your local Maven repository by running the following command from the Datomic distribution's root directory:
bin/maven-install
Or on Windows:
mvn install:install-file -DgroupId=com.datomic -DartifactId=datomic-pro -Dfile=datomic-pro-0.9.5703.jar -DpomFile=pom.xml
Deps.edn
com.datomic/datomic-EDITION {:mvn/version "VERSION"}
Using from Maven
- Replace VERSION in the snippet below with the contents of the VERSION file at the root of this distribution.
- Replace EDITION with either 'free' or 'pro' based on which edition. you are installing
- Add the modified snippet to the dependencies section of your pom.xml:
<dependency> <groupId>com.datomic</groupId> <artifactId>datomic-EDITION</artifactId> <version>VERSION</version> </dependency>
Using from Leiningen
- Replace VERSION in the snippet below with the contents of the VERSION file at the root of this distribution
- Replace EDITION with either 'free' or 'pro' based on which edition you are installing
- Then add the snippet to the dependencies section of your project.clj:
;; in collection under :dependencies key [com.datomic/datomic-EDITION "VERSION"]