From 97a52ac7834291c2b62f9792c4f9d2e14a25c2a6 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 14 Mar 2016 17:48:08 +0000
Subject: [PATCH] Minor cleanup: invert parent pom and bom location in file-system

---
 opendj-sdk/opendj-rest2ldap/pom.xml         |    7 
 /dev/null                                   |  388 ------------------------
 opendj-sdk/opendj-doc-maven-plugin/pom.xml  |    3 
 opendj-sdk/opendj-sdk-bom/pom.xml           |  101 ++++++
 opendj-sdk/opendj-ldap-sdk-examples/pom.xml |    3 
 opendj-sdk/opendj-ldap-toolkit/pom.xml      |    1 
 opendj-sdk/pom.xml                          |  405 +++++++++++++++++++++---
 opendj-sdk/opendj-core/pom.xml              |    1 
 opendj-sdk/opendj-grizzly/pom.xml           |    3 
 opendj-sdk/opendj-cli/pom.xml               |    4 
 10 files changed, 455 insertions(+), 461 deletions(-)

diff --git a/opendj-sdk/opendj-cli/pom.xml b/opendj-sdk/opendj-cli/pom.xml
index a087660..cc2362f 100644
--- a/opendj-sdk/opendj-cli/pom.xml
+++ b/opendj-sdk/opendj-cli/pom.xml
@@ -12,7 +12,7 @@
   Header, with the fields enclosed by brackets [] replaced by your own identifying
   information: "Portions Copyright [year] [name of copyright owner]".
 
-  Copyright 2014-2015 ForgeRock AS.
+  Copyright 2014-2016 ForgeRock AS.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
@@ -21,8 +21,8 @@
         <artifactId>opendj-sdk-parent</artifactId>
         <groupId>org.forgerock.opendj</groupId>
         <version>4.0.0-SNAPSHOT</version>
-        <relativePath>../opendj-sdk-parent/pom.xml</relativePath>
     </parent>
+
     <artifactId>opendj-cli</artifactId>
     <name>OpenDJ CLI API</name>
     <description>This module includes CLI API for implementing CLI applications.</description>
diff --git a/opendj-sdk/opendj-core/pom.xml b/opendj-sdk/opendj-core/pom.xml
index fef52fa..13077c4 100644
--- a/opendj-sdk/opendj-core/pom.xml
+++ b/opendj-sdk/opendj-core/pom.xml
@@ -21,7 +21,6 @@
         <artifactId>opendj-sdk-parent</artifactId>
         <groupId>org.forgerock.opendj</groupId>
         <version>4.0.0-SNAPSHOT</version>
-        <relativePath>../opendj-sdk-parent/pom.xml</relativePath>
     </parent>
 
     <artifactId>opendj-core</artifactId>
diff --git a/opendj-sdk/opendj-doc-maven-plugin/pom.xml b/opendj-sdk/opendj-doc-maven-plugin/pom.xml
index 1909e37..b60c44f 100644
--- a/opendj-sdk/opendj-doc-maven-plugin/pom.xml
+++ b/opendj-sdk/opendj-doc-maven-plugin/pom.xml
@@ -12,7 +12,7 @@
   Header, with the fields enclosed by brackets [] replaced by your own identifying
   information: "Portions Copyright [year] [name of copyright owner]".
 
-  Copyright 2015 ForgeRock AS.
+  Copyright 2015-2016 ForgeRock AS.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
@@ -21,7 +21,6 @@
         <artifactId>opendj-sdk-parent</artifactId>
         <groupId>org.forgerock.opendj</groupId>
         <version>4.0.0-SNAPSHOT</version>
-        <relativePath>../opendj-sdk-parent/pom.xml</relativePath>
     </parent>
 
     <artifactId>opendj-doc-maven-plugin</artifactId>
diff --git a/opendj-sdk/opendj-grizzly/pom.xml b/opendj-sdk/opendj-grizzly/pom.xml
index df273d2..d684b16 100644
--- a/opendj-sdk/opendj-grizzly/pom.xml
+++ b/opendj-sdk/opendj-grizzly/pom.xml
@@ -12,7 +12,7 @@
   Header, with the fields enclosed by brackets [] replaced by your own identifying
   information: "Portions Copyright [year] [name of copyright owner]".
 
-  Copyright 2013-2015 ForgeRock AS.
+  Copyright 2013-2016 ForgeRock AS.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
@@ -21,7 +21,6 @@
         <artifactId>opendj-sdk-parent</artifactId>
         <groupId>org.forgerock.opendj</groupId>
         <version>4.0.0-SNAPSHOT</version>
-        <relativePath>../opendj-sdk-parent/pom.xml</relativePath>
     </parent>
 
     <artifactId>opendj-grizzly</artifactId>
diff --git a/opendj-sdk/opendj-ldap-sdk-examples/pom.xml b/opendj-sdk/opendj-ldap-sdk-examples/pom.xml
index 880bb4c..661de1a 100644
--- a/opendj-sdk/opendj-ldap-sdk-examples/pom.xml
+++ b/opendj-sdk/opendj-ldap-sdk-examples/pom.xml
@@ -12,7 +12,7 @@
   Header, with the fields enclosed by brackets [] replaced by your own identifying
   information: "Portions Copyright [year] [name of copyright owner]".
 
-  Copyright 2011-2015 ForgeRock AS.
+  Copyright 2011-2016 ForgeRock AS.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
@@ -21,7 +21,6 @@
         <artifactId>opendj-sdk-parent</artifactId>
         <groupId>org.forgerock.opendj</groupId>
         <version>4.0.0-SNAPSHOT</version>
-        <relativePath>../opendj-sdk-parent/pom.xml</relativePath>
     </parent>
 
     <artifactId>opendj-ldap-sdk-examples</artifactId>
diff --git a/opendj-sdk/opendj-ldap-toolkit/pom.xml b/opendj-sdk/opendj-ldap-toolkit/pom.xml
index 0f53ae3..b364e21 100644
--- a/opendj-sdk/opendj-ldap-toolkit/pom.xml
+++ b/opendj-sdk/opendj-ldap-toolkit/pom.xml
@@ -21,7 +21,6 @@
         <artifactId>opendj-sdk-parent</artifactId>
         <groupId>org.forgerock.opendj</groupId>
         <version>4.0.0-SNAPSHOT</version>
-        <relativePath>../opendj-sdk-parent/pom.xml</relativePath>
     </parent>
 
     <artifactId>opendj-ldap-toolkit</artifactId>
diff --git a/opendj-sdk/opendj-rest2ldap/pom.xml b/opendj-sdk/opendj-rest2ldap/pom.xml
index 43490d9..4bcce5e 100644
--- a/opendj-sdk/opendj-rest2ldap/pom.xml
+++ b/opendj-sdk/opendj-rest2ldap/pom.xml
@@ -3,15 +3,15 @@
    The contents of this file are subject to the terms of the Common Development and
    Distribution License (the License). You may not use this file except in compliance with the
    License.
-  
+
    You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
    specific language governing permission and limitations under the License.
-  
+
    When distributing Covered Software, include this CDDL Header Notice in each file and include
    the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
    Header, with the fields enclosed by brackets [] replaced by your own identifying
    information: "Portions Copyright [year] [name of copyright owner]".
-  
+
    Copyright 2012-2016 ForgeRock AS.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -21,7 +21,6 @@
         <artifactId>opendj-sdk-parent</artifactId>
         <groupId>org.forgerock.opendj</groupId>
         <version>4.0.0-SNAPSHOT</version>
-        <relativePath>../opendj-sdk-parent/pom.xml</relativePath>
     </parent>
 
     <artifactId>opendj-rest2ldap</artifactId>
diff --git a/opendj-sdk/opendj-sdk-bom/pom.xml b/opendj-sdk/opendj-sdk-bom/pom.xml
new file mode 100644
index 0000000..b4df69b
--- /dev/null
+++ b/opendj-sdk/opendj-sdk-bom/pom.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  The contents of this file are subject to the terms of the Common Development and
+  Distribution License (the License). You may not use this file except in compliance with the
+  License.
+
+  You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
+  specific language governing permission and limitations under the License.
+
+  When distributing Covered Software, include this CDDL Header Notice in each file and include
+  the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
+  Header, with the fields enclosed by brackets [] replaced by your own identifying
+  information: "Portions Copyright [year] [name of copyright owner]".
+
+  Copyright 2011-2016 ForgeRock AS.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.forgerock</groupId>
+        <artifactId>forgerock-parent</artifactId>
+        <version>2.0.3</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>org.forgerock.opendj</groupId>
+    <artifactId>opendj-sdk-bom</artifactId>
+    <version>4.0.0-SNAPSHOT</version>
+
+    <packaging>pom</packaging>
+
+    <name>OpenDJ SDK BOM</name>
+    <description>
+        Provides a list of OpenDJ SDK dependencies which are known to be compatible with each other.
+    </description>
+
+    <properties>
+        <opendj.sdk.version>4.0.0-SNAPSHOT</opendj.sdk.version>
+        <i18n-framework.version>1.4.2</i18n-framework.version>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <!-- ForgeRock BOM -->
+            <dependency>
+                <groupId>org.forgerock.commons</groupId>
+                <artifactId>forgerock-bom</artifactId>
+                <version>4.1.1</version>
+                <scope>import</scope>
+                <type>pom</type>
+            </dependency>
+
+            <!-- I18N framework -->
+            <dependency>
+                <groupId>org.forgerock.commons</groupId>
+                <artifactId>i18n-core</artifactId>
+                <version>${i18n-framework.version}</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.forgerock.commons</groupId>
+                <artifactId>i18n-slf4j</artifactId>
+                <version>${i18n-framework.version}</version>
+            </dependency>
+
+
+            <!-- OpenDJ SDK -->
+            <dependency>
+                <groupId>org.forgerock.opendj</groupId>
+                <artifactId>opendj-core</artifactId>
+                <version>${opendj.sdk.version}</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.forgerock.opendj</groupId>
+                <artifactId>opendj-cli</artifactId>
+                <version>${opendj.sdk.version}</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.forgerock.opendj</groupId>
+                <artifactId>opendj-grizzly</artifactId>
+                <version>${opendj.sdk.version}</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.forgerock.opendj</groupId>
+                <artifactId>opendj-rest2ldap</artifactId>
+                <version>${opendj.sdk.version}</version>
+            </dependency>
+
+            <!-- Other -->
+            <dependency>
+                <groupId>com.github.stephenc.jcip</groupId>
+                <artifactId>jcip-annotations</artifactId>
+                <version>1.0-1</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+</project>
diff --git a/opendj-sdk/opendj-sdk-parent/pom.xml b/opendj-sdk/opendj-sdk-parent/pom.xml
deleted file mode 100644
index e77ffd2..0000000
--- a/opendj-sdk/opendj-sdk-parent/pom.xml
+++ /dev/null
@@ -1,388 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  The contents of this file are subject to the terms of the Common Development and
-  Distribution License (the License). You may not use this file except in compliance with the
-  License.
-
-  You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
-  specific language governing permission and limitations under the License.
-
-  When distributing Covered Software, include this CDDL Header Notice in each file and include
-  the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
-  Header, with the fields enclosed by brackets [] replaced by your own identifying
-  information: "Portions Copyright [year] [name of copyright owner]".
-
-  Copyright 2011-2016 ForgeRock AS.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>org.forgerock.opendj</groupId>
-        <artifactId>opendj-sdk-bom</artifactId>
-        <version>4.0.0-SNAPSHOT</version>
-    </parent>
-
-    <groupId>org.forgerock.opendj</groupId>
-    <artifactId>opendj-sdk-parent</artifactId>
-
-    <packaging>pom</packaging>
-
-    <name>OpenDJ SDK Parent</name>
-    <description>
-        This group module provides a complete LDAP SDK for developing LDAP Directory client and server applications.
-    </description>
-
-    <properties>
-        <forgerock-build-tools.version>1.0.2</forgerock-build-tools.version>
-        <forgerock-doc-plugin.version>3.1.0</forgerock-doc-plugin.version>
-        <grizzly-framework.version>2.3.23</grizzly-framework.version>
-        <metrics-core.version>3.1.2</metrics-core.version>
-
-        <!-- OSGi bundles properties -->
-        <opendj.osgi.import.additional />
-        <!--
-         | Use provide:=true to disallow mixing OpenDJ and ForgeRock resource versions.
-         | it change the version policy from == + to == =+  [2.0,3) [2.0,2.1)
-        -->
-        <opendj.osgi.import>
-            ${opendj.osgi.import.additional},
-            *
-        </opendj.osgi.import>
-        <opendj-copyright-maven-plugin.version>1.0.0</opendj-copyright-maven-plugin.version>
-    </properties>
-
-    <dependencyManagement>
-        <dependencies>
-            <!-- Dropwizard metrics-core -->
-            <dependency>
-                <groupId>io.dropwizard.metrics</groupId>
-                <artifactId>metrics-core</artifactId>
-                <version>${metrics-core.version}</version>
-            </dependency>
-
-            <!-- Commons -->
-            <dependency>
-                <groupId>org.forgerock</groupId>
-                <artifactId>forgerock-build-tools</artifactId>
-                <version>${forgerock-build-tools.version}</version>
-                <scope>test</scope>
-            </dependency>
-
-            <!-- OpenDJ SDK -->
-            <dependency>
-                <groupId>org.forgerock.opendj</groupId>
-                <artifactId>opendj-core</artifactId>
-                <type>test-jar</type>
-                <version>${project.version}</version>
-                <scope>test</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
-
-    <dependencies>
-        <dependency>
-            <groupId>org.easytesting</groupId>
-            <artifactId>fest-assert</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.assertj</groupId>
-            <artifactId>assertj-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.mockito</groupId>
-            <artifactId>mockito-all</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.testng</groupId>
-            <artifactId>testng</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-jdk14</artifactId>
-            <scope>test</scope>
-        </dependency>
-    </dependencies>
-
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.forgerock.maven.plugins</groupId>
-                <artifactId>javadoc-updater-maven-plugin</artifactId>
-                <version>1.0.0</version>
-                <executions>
-                    <execution>
-                        <phase>site</phase>
-                        <goals>
-                            <goal>fixjavadoc</goal>
-                        </goals>
-                        <configuration>
-                            <directory>${project.reporting.outputDirectory}</directory>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>org.forgerock.opendj</groupId>
-                    <artifactId>opendj-doc-maven-plugin</artifactId>
-                    <version>${project.version}</version>
-                </plugin>
-
-                <plugin>
-                    <inherited>true</inherited>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-compiler-plugin</artifactId>
-                    <configuration>
-                        <source>1.7</source>
-                        <target>1.7</target>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-surefire-plugin</artifactId>
-                    <configuration>
-                        <argLine>-server</argLine>
-                        <properties>
-                            <property>
-                                <name>usedefaultlisteners</name>
-                                <value>false</value>
-                            </property>
-                            <property>
-                                <name>listener</name>
-                                <value>org.forgerock.testng.ForgeRockTestListener</value>
-                            </property>
-                        </properties>
-                    </configuration>
-                </plugin>
-
-                <!-- Retrieve the SCM revision number -->
-                <plugin>
-                    <groupId>org.codehaus.mojo</groupId>
-                    <artifactId>buildnumber-maven-plugin</artifactId>
-                    <version>1.4</version>
-                    <executions>
-                        <execution>
-                            <id>generate-buildnumber</id>
-                            <goals>
-                                <goal>create</goal>
-                            </goals>
-                            <configuration>
-                                <buildNumberPropertyName>buildRevision</buildNumberPropertyName>
-                                <revisionOnScmFailure>-1</revisionOnScmFailure>
-                            </configuration>
-                        </execution>
-                    </executions>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.felix</groupId>
-                    <artifactId>maven-bundle-plugin</artifactId>
-                    <version>2.3.7</version>
-                    <extensions>true</extensions>
-                    <configuration>
-                        <instructions>
-                            <!--
-                            | Remove the by default removed headers plus some other to make cleaner the generated MANIFEST.MF
-                            -->
-                            <_removeheaders>
-                                Bnd-LastModified,Built-By,Private-Package,Tool,Created-By,Build-Jdk,Include-Resource,
-                                Ignore-Package,Private-Package,Bundle-DocURL
-                            </_removeheaders>
-                            <Import-Package>${opendj.osgi.import}</Import-Package>
-                        </instructions>
-                        <archive>
-                            <addMavenDescriptor>false</addMavenDescriptor>
-                            <index>true</index>
-                            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
-                        </archive>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-javadoc-plugin</artifactId>
-                    <configuration>
-                        <links>
-                            <link>http://commons.forgerock.org/i18n-framework/i18n-core/apidocs</link>
-                        </links>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-source-plugin</artifactId>
-                    <executions>
-                        <execution>
-                            <goals>
-                                <goal>jar</goal>
-                            </goals>
-                        </execution>
-                    </executions>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-site-plugin</artifactId>
-                    <configuration>
-                        <locales>en</locales>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.forgerock.commons</groupId>
-                    <artifactId>i18n-maven-plugin</artifactId>
-                    <version>${i18n-framework.version}</version>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.codehaus.mojo</groupId>
-                    <artifactId>cobertura-maven-plugin</artifactId>
-                    <configuration>
-                        <instrumentation>
-                            <excludes>
-                                <exclude>**/*Messages.class</exclude>
-                            </excludes>
-                        </instrumentation>
-                    </configuration>
-                </plugin>
-
-                <!-- This is needed to use annotations in maven plugins with maven 3.0.x -->
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-plugin-plugin</artifactId>
-                    <version>3.2</version>
-                    <configuration>
-                        <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
-                    </configuration>
-                    <executions>
-                        <execution>
-                            <id>mojo-descriptor</id>
-                            <phase>process-classes</phase>
-                            <goals>
-                                <goal>descriptor</goal>
-                            </goals>
-                        </execution>
-                    </executions>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.forgerock.opendj</groupId>
-                    <artifactId>opendj-copyright-maven-plugin</artifactId>
-                    <version>${opendj-copyright-maven-plugin.version}</version>
-                    <configuration>
-                        <!-- Disable copyright on README and legal files -->
-                        <disabledFiles>
-                            <disabledFile>README</disabledFile>
-                            <disabledFile>**/README</disabledFile>
-                            <disabledFile>README.txt</disabledFile>
-                            <disabledFile>**/README.txt</disabledFile>
-                            <disabledFile>**/THIRDPARTYREADME.txt</disabledFile>
-                            <disabledFile>legal-notices/CDDLv1_0.txt</disabledFile>
-                            <disabledFile>**/tests/unit-tests-testng/resource/config-changes.ldif</disabledFile>
-                        </disabledFiles>
-                    </configuration>
-                </plugin>
-
-                <!-- Provides build capabilities for docs in DocBook XML format. -->
-                <plugin>
-                    <groupId>org.forgerock.commons</groupId>
-                    <artifactId>forgerock-doc-maven-plugin</artifactId>
-                    <version>${forgerock-doc-plugin.version}</version>
-                    <configuration>
-                        <projectName>OpenDJ</projectName>
-                        <projectVersion>${project.version}</projectVersion>
-                        <releaseVersion>${project.version}</releaseVersion>
-                        <googleAnalyticsId>UA-23412190-8</googleAnalyticsId>
-                    </configuration>
-                </plugin>
-            </plugins>
-        </pluginManagement>
-    </build>
-
-    <profiles>
-        <profile>
-            <id>precommit</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.forgerock.opendj</groupId>
-                        <artifactId>opendj-copyright-maven-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>check-copyright</id>
-                                <goals>
-                                    <goal>check-copyright</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-
-        <profile>
-            <id>update-copyrights</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.forgerock.opendj</groupId>
-                        <artifactId>opendj-copyright-maven-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>check-copyright</id>
-                                <phase>none</phase>
-                                <goals>
-                                    <goal>check-copyright</goal>
-                                </goals>
-                            </execution>
-                            <execution>
-                                <id>update-copyright</id>
-                                <goals>
-                                    <goal>update-copyright</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-
-    <reporting>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-project-info-reports-plugin</artifactId>
-                <version>2.4</version>
-                <reportSets>
-                    <reportSet>
-                        <reports>
-                            <report>index</report>
-                            <report>mailing-list</report>
-                            <report>issue-tracking</report>
-                            <report>license</report>
-                            <report>scm</report>
-                            <report>cim</report>
-                            <report>distribution-management</report>
-                        </reports>
-                    </reportSet>
-                </reportSets>
-            </plugin>
-        </plugins>
-    </reporting>
-</project>
diff --git a/opendj-sdk/pom.xml b/opendj-sdk/pom.xml
index 544695c..8bb3cfe 100644
--- a/opendj-sdk/pom.xml
+++ b/opendj-sdk/pom.xml
@@ -15,25 +15,23 @@
   Copyright 2015-2016 ForgeRock AS.
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <parent>
-        <groupId>org.forgerock</groupId>
-        <artifactId>forgerock-parent</artifactId>
-        <version>2.0.3</version>
-    </parent>
-
     <modelVersion>4.0.0</modelVersion>
 
-    <groupId>org.forgerock.opendj</groupId>
-    <artifactId>opendj-sdk-bom</artifactId>
-    <version>4.0.0-SNAPSHOT</version>
+    <parent>
+        <groupId>org.forgerock.opendj</groupId>
+        <artifactId>opendj-sdk-bom</artifactId>
+        <version>4.0.0-SNAPSHOT</version>
+        <relativePath>opendj-sdk-bom/pom.xml</relativePath>
+    </parent>
 
+    <artifactId>opendj-sdk-parent</artifactId>
     <packaging>pom</packaging>
 
-    <name>OpenDJ SDK BOM</name>
-    <description>OpenDJ BOM.
-        Provides a list of OpenDJ dependencies
-        which are known to be compatible with each other.
+    <name>OpenDJ SDK Parent</name>
+    <description>
+        This group module provides a complete LDAP SDK for developing LDAP Directory client and server applications.
     </description>
+
     <inceptionYear>2011</inceptionYear>
     <url>http://opendj.forgerock.org</url>
 
@@ -134,7 +132,7 @@
     </repositories>
 
     <modules>
-        <module>opendj-sdk-parent</module>
+        <module>opendj-sdk-bom</module>
         <module>opendj-doc-maven-plugin</module>
         <module>opendj-core</module>
         <module>opendj-grizzly</module>
@@ -149,66 +147,355 @@
             scp://community.internal.forgerock.com/var/www/vhosts/opendj.forgerock.org/httpdocs
         </site.distribution.url>
 
-        <opendj.sdk.version>4.0.0-SNAPSHOT</opendj.sdk.version>
-        <i18n-framework.version>1.4.2</i18n-framework.version>
+        <forgerock-build-tools.version>1.0.2</forgerock-build-tools.version>
+        <forgerock-doc-plugin.version>3.1.0</forgerock-doc-plugin.version>
+        <grizzly-framework.version>2.3.23</grizzly-framework.version>
+        <metrics-core.version>3.1.2</metrics-core.version>
+
+        <!-- OSGi bundles properties -->
+        <opendj.osgi.import.additional />
+        <!--
+         | Use provide:=true to disallow mixing OpenDJ and ForgeRock resource versions.
+         | it change the version policy from == + to == =+  [2.0,3) [2.0,2.1)
+        -->
+        <opendj.osgi.import>
+            ${opendj.osgi.import.additional},
+            *
+        </opendj.osgi.import>
+        <opendj-copyright-maven-plugin.version>1.0.0</opendj-copyright-maven-plugin.version>
     </properties>
 
     <dependencyManagement>
         <dependencies>
-            <!-- ForgeRock BOM -->
+            <!-- Dropwizard metrics-core -->
             <dependency>
-                <groupId>org.forgerock.commons</groupId>
-                <artifactId>forgerock-bom</artifactId>
-                <version>4.1.1</version>
-                <scope>import</scope>
-                <type>pom</type>
+                <groupId>io.dropwizard.metrics</groupId>
+                <artifactId>metrics-core</artifactId>
+                <version>${metrics-core.version}</version>
             </dependency>
 
-            <!-- I18N framework -->
+            <!-- Commons -->
             <dependency>
-                <groupId>org.forgerock.commons</groupId>
-                <artifactId>i18n-core</artifactId>
-                <version>${i18n-framework.version}</version>
+                <groupId>org.forgerock</groupId>
+                <artifactId>forgerock-build-tools</artifactId>
+                <version>${forgerock-build-tools.version}</version>
+                <scope>test</scope>
             </dependency>
 
-            <dependency>
-                <groupId>org.forgerock.commons</groupId>
-                <artifactId>i18n-slf4j</artifactId>
-                <version>${i18n-framework.version}</version>
-            </dependency>
-
-
             <!-- OpenDJ SDK -->
             <dependency>
                 <groupId>org.forgerock.opendj</groupId>
                 <artifactId>opendj-core</artifactId>
-                <version>${opendj.sdk.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>org.forgerock.opendj</groupId>
-                <artifactId>opendj-cli</artifactId>
-                <version>${opendj.sdk.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>org.forgerock.opendj</groupId>
-                <artifactId>opendj-grizzly</artifactId>
-                <version>${opendj.sdk.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>org.forgerock.opendj</groupId>
-                <artifactId>opendj-rest2ldap</artifactId>
-                <version>${opendj.sdk.version}</version>
-            </dependency>
-
-            <!-- Other -->
-            <dependency>
-                <groupId>com.github.stephenc.jcip</groupId>
-                <artifactId>jcip-annotations</artifactId>
-                <version>1.0-1</version>
+                <type>test-jar</type>
+                <version>${project.version}</version>
+                <scope>test</scope>
             </dependency>
         </dependencies>
     </dependencyManagement>
+
+
+    <dependencies>
+        <dependency>
+            <groupId>org.easytesting</groupId>
+            <artifactId>fest-assert</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.assertj</groupId>
+            <artifactId>assertj-core</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-all</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.testng</groupId>
+            <artifactId>testng</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-jdk14</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.forgerock.maven.plugins</groupId>
+                <artifactId>javadoc-updater-maven-plugin</artifactId>
+                <version>1.0.0</version>
+                <executions>
+                    <execution>
+                        <phase>site</phase>
+                        <goals>
+                            <goal>fixjavadoc</goal>
+                        </goals>
+                        <configuration>
+                            <directory>${project.reporting.outputDirectory}</directory>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.forgerock.opendj</groupId>
+                    <artifactId>opendj-doc-maven-plugin</artifactId>
+                    <version>${project.version}</version>
+                </plugin>
+
+                <plugin>
+                    <inherited>true</inherited>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <configuration>
+                        <source>1.7</source>
+                        <target>1.7</target>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <configuration>
+                        <argLine>-server</argLine>
+                        <properties>
+                            <property>
+                                <name>usedefaultlisteners</name>
+                                <value>false</value>
+                            </property>
+                            <property>
+                                <name>listener</name>
+                                <value>org.forgerock.testng.ForgeRockTestListener</value>
+                            </property>
+                        </properties>
+                    </configuration>
+                </plugin>
+
+                <!-- Retrieve the SCM revision number -->
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>buildnumber-maven-plugin</artifactId>
+                    <version>1.4</version>
+                    <executions>
+                        <execution>
+                            <id>generate-buildnumber</id>
+                            <goals>
+                                <goal>create</goal>
+                            </goals>
+                            <configuration>
+                                <buildNumberPropertyName>buildRevision</buildNumberPropertyName>
+                                <revisionOnScmFailure>-1</revisionOnScmFailure>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>maven-bundle-plugin</artifactId>
+                    <version>2.3.7</version>
+                    <extensions>true</extensions>
+                    <configuration>
+                        <instructions>
+                            <!--
+                            | Remove the by default removed headers plus some other to make cleaner the generated MANIFEST.MF
+                            -->
+                            <_removeheaders>
+                                Bnd-LastModified,Built-By,Private-Package,Tool,Created-By,Build-Jdk,Include-Resource,
+                                Ignore-Package,Private-Package,Bundle-DocURL
+                            </_removeheaders>
+                            <Import-Package>${opendj.osgi.import}</Import-Package>
+                        </instructions>
+                        <archive>
+                            <addMavenDescriptor>false</addMavenDescriptor>
+                            <index>true</index>
+                            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+                        </archive>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-javadoc-plugin</artifactId>
+                    <configuration>
+                        <links>
+                            <link>http://commons.forgerock.org/i18n-framework/i18n-core/apidocs</link>
+                        </links>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-source-plugin</artifactId>
+                    <executions>
+                        <execution>
+                            <goals>
+                                <goal>jar</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-site-plugin</artifactId>
+                    <configuration>
+                        <locales>en</locales>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.forgerock.commons</groupId>
+                    <artifactId>i18n-maven-plugin</artifactId>
+                    <version>${i18n-framework.version}</version>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>cobertura-maven-plugin</artifactId>
+                    <configuration>
+                        <instrumentation>
+                            <excludes>
+                                <exclude>**/*Messages.class</exclude>
+                            </excludes>
+                        </instrumentation>
+                    </configuration>
+                </plugin>
+
+                <!-- This is needed to use annotations in maven plugins with maven 3.0.x -->
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-plugin-plugin</artifactId>
+                    <version>3.2</version>
+                    <configuration>
+                        <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
+                    </configuration>
+                    <executions>
+                        <execution>
+                            <id>mojo-descriptor</id>
+                            <phase>process-classes</phase>
+                            <goals>
+                                <goal>descriptor</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.forgerock.opendj</groupId>
+                    <artifactId>opendj-copyright-maven-plugin</artifactId>
+                    <version>${opendj-copyright-maven-plugin.version}</version>
+                    <configuration>
+                        <!-- Disable copyright on README and legal files -->
+                        <disabledFiles>
+                            <disabledFile>README</disabledFile>
+                            <disabledFile>**/README</disabledFile>
+                            <disabledFile>README.txt</disabledFile>
+                            <disabledFile>**/README.txt</disabledFile>
+                            <disabledFile>**/THIRDPARTYREADME.txt</disabledFile>
+                            <disabledFile>legal-notices/CDDLv1_0.txt</disabledFile>
+                            <disabledFile>**/tests/unit-tests-testng/resource/config-changes.ldif</disabledFile>
+                        </disabledFiles>
+                    </configuration>
+                </plugin>
+
+                <!-- Provides build capabilities for docs in DocBook XML format. -->
+                <plugin>
+                    <groupId>org.forgerock.commons</groupId>
+                    <artifactId>forgerock-doc-maven-plugin</artifactId>
+                    <version>${forgerock-doc-plugin.version}</version>
+                    <configuration>
+                        <projectName>OpenDJ</projectName>
+                        <projectVersion>${project.version}</projectVersion>
+                        <releaseVersion>${project.version}</releaseVersion>
+                        <googleAnalyticsId>UA-23412190-8</googleAnalyticsId>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>precommit</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.forgerock.opendj</groupId>
+                        <artifactId>opendj-copyright-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>check-copyright</id>
+                                <goals>
+                                    <goal>check-copyright</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+        <profile>
+            <id>update-copyrights</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.forgerock.opendj</groupId>
+                        <artifactId>opendj-copyright-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>check-copyright</id>
+                                <phase>none</phase>
+                                <goals>
+                                    <goal>check-copyright</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <id>update-copyright</id>
+                                <goals>
+                                    <goal>update-copyright</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-project-info-reports-plugin</artifactId>
+                <version>2.4</version>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>index</report>
+                            <report>mailing-list</report>
+                            <report>issue-tracking</report>
+                            <report>license</report>
+                            <report>scm</report>
+                            <report>cim</report>
+                            <report>distribution-management</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
+            </plugin>
+        </plugins>
+    </reporting>
 </project>

--
Gitblit v1.10.0