From e96ee022a34082d99805267b4ec0870a029f355a Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 28 Nov 2013 15:20:37 +0000
Subject: [PATCH] Final fix for OPENDJ-1195: Realign the SDK developer guide with the SDK trunk once the new Maven module and package layout has been validated
---
opendj-sdk/opendj-ldap-toolkit/pom.xml | 11 +++++
opendj-sdk/src/main/docbkx/dev-guide/chap-get-sdk.xml | 50 ++++++-------------------
2 files changed, 23 insertions(+), 38 deletions(-)
diff --git a/opendj-sdk/opendj-ldap-toolkit/pom.xml b/opendj-sdk/opendj-ldap-toolkit/pom.xml
index 4da4beb..2278e37 100644
--- a/opendj-sdk/opendj-ldap-toolkit/pom.xml
+++ b/opendj-sdk/opendj-ldap-toolkit/pom.xml
@@ -84,6 +84,17 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
diff --git a/opendj-sdk/src/main/docbkx/dev-guide/chap-get-sdk.xml b/opendj-sdk/src/main/docbkx/dev-guide/chap-get-sdk.xml
index f963483..dc9ce1b 100644
--- a/opendj-sdk/src/main/docbkx/dev-guide/chap-get-sdk.xml
+++ b/opendj-sdk/src/main/docbkx/dev-guide/chap-get-sdk.xml
@@ -103,7 +103,7 @@
<repository>
<id>forgerock-staging-repository</id>
<name>ForgeRock Release Repository</name>
- <url>http://maven.forgerock.org/repo/releases</url>
+ <url>${mavenRepoReleases}</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
@@ -111,7 +111,7 @@
<repository>
<id>forgerock-snapshots-repository</id>
<name>ForgeRock Snapshot Repository</name>
- <url>http://maven.forgerock.org/repo/snapshots</url>
+ <url>${mavenRepoSnapshots}</url>
<releases>
<enabled>false</enabled>
</releases>
@@ -122,9 +122,10 @@
<dependencies>
<dependency>
- <groupId>org.forgerock.opendj</groupId>
+ <groupId>${project.group}</groupId>
<artifactId>opendj-ldap-sdk</artifactId>
<version><?eval ${docTargetVersion}?></version>
+ <type>pom</type>
</dependency>
</dependencies></programlisting>
</step>
@@ -155,20 +156,6 @@
<screen>(Windows)
C:\>set PATH=\\path\to\opendj-ldap-toolkit-<?eval ${docTargetVersion}?>\bat:%PATH%</screen>
</step>
- <step>
- <para> Add the OpenDJ LDAP SDK for the APIs, the I18N core library,
- and Grizzly I/O framework for the transport to your CLASSPATH, typically found under
- <filename>opendj-ldap-toolkit-<?eval ${docTargetVersion}?>/lib/</filename>.</para>
- <screen>(UNIX)
-$ export CLASSPATH=/path/to/lib/grizzly-framework-<?eval ${grizzlyFrameworkVersion}?>.jar:$CLASSPATH
-$ export CLASSPATH=/path/to/lib/i18n-core-<?eval ${i18nFrameworkVersion}?>.jar:$CLASSPATH
-$ export CLASSPATH=/path/to/lib/opendj-ldap-sdk-<?eval ${docTargetVersion}?>.jar:$CLASSPATH
- </screen>
- <screen>(Windows)
-C:\>set CLASSPATH=\\path\to\lib\grizzly-framework-<?eval ${grizzlyFrameworkVersion}?>.jar:%CLASSPATH%
-C:\>set CLASSPATH=\\path\to\lib\i18n-core-<?eval ${i18nFrameworkVersion}?>.jar:%CLASSPATH%
-C:\>set CLASSPATH=\\path\to\lib\opendj-ldap-sdk-<?eval ${docTargetVersion}?>.jar:%CLASSPATH%</screen>
- </step>
</procedure>
<procedure xml:id="proc-roll-your-own-sdk">
@@ -184,26 +171,23 @@
</step>
<step>
<para>Check out the source code.</para>
- <screen>$ svn co https://svn.forgerock.org/opendj/trunk/opendj3
+ <screen>$ svn co ${project.scm.url} opendj
...
Checked out revision <replaceable>XXXX</replaceable>.</screen>
</step>
<step>
<para>Build the modules and install them in the local repository.</para>
- <screen>$ cd opendj3/
+ <screen>$ cd opendj/
$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
-[INFO]
+[INFO]
[INFO] OpenDJ Directory Services Project
-[INFO] OpenDJ LDAP SDK
-[INFO] OpenDJ LDAP Toolkit
-[INFO] OpenDJ LDAP SDK Examples
-[INFO] OpenDJ Commons REST Adapter
-[INFO] OpenDJ Commons REST LDAP Gateway
-[INFO] OpenDJ Server 2.x Adapter
-[INFO]
+[INFO] OpenDJ Core APIs
+[INFO] OpenDJ Grizzly Transport Provider
+[INFO] OpenDJ SDK
+[INFO] OpenDJ SDK Toolkit
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
@@ -215,23 +199,13 @@
</step>
<step>
<para>Unzip the tools and libraries included in the file,
- <filename>opendj3/opendj-ldap-toolkit/target/opendj-ldap-toolkit-<?eval ${docTargetVersion}?>.zip</filename>.</para>
+ <filename>opendj/opendj-ldap-toolkit/target/opendj-ldap-toolkit-<?eval ${docTargetVersion}?>.zip</filename>.</para>
</step>
<step>
<para>Add the <filename>opendj-ldap-toolkit-<?eval ${docTargetVersion}?>/bin</filename>
(UNIX) or <filename>opendj-ldap-toolkit-<?eval ${docTargetVersion}?>\bat</filename>
(Windows) directory to your PATH.</para>
</step>
- <step>
- <para>Set your CLASSPATH to include the OpenDJ LDAP SDK library,
- <filename>opendj-ldap-sdk-<?eval ${docTargetVersion}?>.jar</filename>,
- the I18N core library,
- <filename>i18n-core-<?eval ${i18nFrameworkVersion}?>.jar</filename>, and the
- Grizzly framework,
- <filename>grizzly-framework-<?eval ${grizzlyFrameworkVersion}?>.jar</filename>
- under
- <filename>opendj-ldap-toolkit-<?eval ${docTargetVersion}?>/lib/</filename>.</para>
- </step>
</procedure>
<para>After you install OpenDJ LDAP SDK and configure your environment as
--
Gitblit v1.10.0