From dcad6ba6603a378f526d2ea6655db30f97df69da Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Fri, 20 Apr 2012 12:34:34 +0000
Subject: [PATCH] Delegate some mindless downloading and classpath setting to Maven
---
opendj3/src/main/docbkx/dev-guide/chap-get-sdk.xml | 47 +++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 43 insertions(+), 4 deletions(-)
diff --git a/opendj3/src/main/docbkx/dev-guide/chap-get-sdk.xml b/opendj3/src/main/docbkx/dev-guide/chap-get-sdk.xml
index ffa202b..8224867 100644
--- a/opendj3/src/main/docbkx/dev-guide/chap-get-sdk.xml
+++ b/opendj3/src/main/docbkx/dev-guide/chap-get-sdk.xml
@@ -33,10 +33,10 @@
<para>This chapter introduces OpenDJ LDAP SDK, demonstrating how to get the
software and to build a first basic directory client application.</para>
-
+
<section xml:id="about-opendj-ldap-sdk">
<title>About OpenDJ LDAP SDK</title>
-
+
<para>OpenDJ LDAP SDK provides a set of modern, developer-friendly Java APIs
as part of the OpenDJ product suite. The product suite includes the client
SDK alongside command-line tools and sample code, a 100% pure Java directory
@@ -44,7 +44,7 @@
use with any server that complies with the <citetitle>Lightweight Directory
Access Protocol (LDAP): Technical Specification Road Map</citetitle>,
<link xlink:href='http://tools.ietf.org/html/rfc4510'>RFC 4510</link>.</para>
-
+
<para>OpenDJ LDAP SDK brings you easy-to-use connection management, connection
pooling, load balancing, and all the standard LDAP operations to read and
write directory entries. OpenDJ LDAP SDK also lets you build applications with
@@ -74,6 +74,46 @@
xlink:role="http://docbook.org/xlink/role/olink"><citetitle>Java
Environment</citetitle></link> requirements.</para>
+ <procedure xml:id="use-maven">
+ <title>To Include the SDK as a Maven Dependency</title>
+
+ <para>Let that expensive computer you bought do the work.</para>
+
+ <step>
+ <para>Include the ForgeRock repository in your list, and include the SDK
+ as a dependency.</para>
+
+ <programlisting language="xml"><repositories>
+ <repository>
+ <id>forgerock-staging-repository</id>
+ <name>ForgeRock Release Repository</name>
+ <url>http://maven.forgerock.org/repo/releases</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>forgerock-snapshots-repository</id>
+ <name>ForgeRock Snapshot Repository</name>
+ <url>http://maven.forgerock.org/repo/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+</repositories>
+
+...
+
+<dependencies>
+ <dependency>
+ <groupId>org.forgerock.opendj</groupId>
+ <artifactId>opendj-ldap-sdk</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ </dependency>
+</dependencies></programlisting>
+ </step>
+ </procedure>
+
<procedure xml:id="install-stable-sdk">
<title>To Install the Latest Stable SDK</title>
<step>
@@ -131,7 +171,6 @@
</step>
</procedure>
-
<procedure xml:id="proc-roll-your-own-sdk">
<title>To Build Your Own SDK From Source</title>
<step>
--
Gitblit v1.10.0