From 3a06cd0bb4c34ebe22755e2741303db2f838526b Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 31 May 2011 10:36:36 +0000
Subject: [PATCH] Fix OPENDJ-179: Add Maven build infrastructure for OpenDJ trunk and 2.4 branch
---
opendj-sdk/opends/pom.xml | 131 +++++++++++++++++++++
opendj-sdk/opends/src/main/assembly/descriptor.xml | 42 +++++++
opendj-sdk/opends/src/site/xdoc/index.xml | 75 ++++++++++++
opendj-sdk/opends/src/site/site.xml | 94 +++++++++++++++
4 files changed, 342 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/pom.xml b/opendj-sdk/opends/pom.xml
new file mode 100644
index 0000000..6923299
--- /dev/null
+++ b/opendj-sdk/opends/pom.xml
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ! CDDL HEADER START
+ !
+ ! The contents of this file are subject to the terms of the
+ ! Common Development and Distribution License, Version 1.0 only
+ ! (the "License"). You may not use this file except in compliance
+ ! with the License.
+ !
+ ! You can obtain a copy of the license at
+ ! trunk/opendj3/legal-notices/CDDLv1_0.txt
+ ! or http://forgerock.org/license/CDDLv1.0.html.
+ ! See the License for the specific language governing permissions
+ ! and limitations under the License.
+ !
+ ! When distributing Covered Code, include this CDDL HEADER in each
+ ! file and include the License file at
+ ! trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
+ ! add the following below this CDDL HEADER, with the fields enclosed
+ ! by brackets "[]" replaced with your own identifying information:
+ ! Portions Copyright [yyyy] [name of copyright owner]
+ !
+ ! CDDL HEADER END
+ !
+ ! Copyright 2011 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">
+
+ <!-- This is Maven build file is just a hack in order to leverage
+ Maven's site generation capabilities. It duplicates version information,
+ and the Ant build is not split into phases: we just do it in one single
+ blast during the compile phase -->
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.forgerock.opendj</groupId>
+ <artifactId>opendj-project</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>opendj-server</artifactId>
+ <version>2.5.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>OpenDJ Directory Server</name>
+ <description>
+ OpenDJ is a new LDAPv3 compliant directory service, developed for the Java
+ platform, providing a high performance, highly available and secure store
+ for the identities managed by enterprises.
+ </description>
+ <scm>
+ <url>https://svn.forgerock.org/opendj/trunk/opends/</url>
+ <connection>scm:svn:https://svn.forgerock.org/opendj/trunk/opends/</connection>
+ <developerConnection>scm:svn:https://svn.forgerock.org/opendj/trunk/opends/</developerConnection>
+ <tag>HEAD</tag>
+ </scm>
+ <ciManagement>
+ <system>jenkins</system>
+ <url>http://builds.forgerock.org/job/OpenDJ%20-%20trunk%20-%20postcommit</url>
+ <notifiers>
+ <notifier>
+ <type>mail</type>
+ <sendOnError>true</sendOnError>
+ <sendOnFailure>true</sendOnFailure>
+ <sendOnSuccess>false</sendOnSuccess>
+ <sendOnWarning>false</sendOnWarning>
+ <address>opendj-dev@forgerock.org</address>
+ </notifier>
+ </notifiers>
+ </ciManagement>
+ <properties>
+ <ant.home>ext/ant</ant.home>
+ </properties>
+ <build>
+ <directory>build</directory>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <id>clean</id>
+ <phase>clean</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <ant target="clean" />
+ </target>
+ </configuration>
+ </execution>
+ <execution>
+ <id>compile</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <!-- We need to significantly refactor build.xml in order
+ to split this up any more -->
+ <ant target="precommit" />
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>src/main/assembly/descriptor.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/opendj-sdk/opends/src/main/assembly/descriptor.xml b/opendj-sdk/opends/src/main/assembly/descriptor.xml
new file mode 100644
index 0000000..98b8b06
--- /dev/null
+++ b/opendj-sdk/opends/src/main/assembly/descriptor.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!--
+ ! CDDL HEADER START
+ !
+ ! The contents of this file are subject to the terms of the
+ ! Common Development and Distribution License, Version 1.0 only
+ ! (the "License"). You may not use this file except in compliance
+ ! with the License.
+ !
+ ! You can obtain a copy of the license at
+ ! trunk/opendj3/legal-notices/CDDLv1_0.txt
+ ! or http://forgerock.org/license/CDDLv1.0.html.
+ ! See the License for the specific language governing permissions
+ ! and limitations under the License.
+ !
+ ! When distributing Covered Code, include this CDDL HEADER in each
+ ! file and include the License file at
+ ! trunk/opendj3/legal-notices/CDDLv1_0.txt. If applicable,
+ ! add the following below this CDDL HEADER, with the fields enclosed
+ ! by brackets "[]" replaced with your own identifying information:
+ ! Portions Copyright [yyyy] [name of copyright owner]
+ !
+ ! CDDL HEADER END
+ !
+ ! Copyright 2011 ForgeRock AS
+ !
+ -->
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
+ http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+ <id>opendj-ldap-server</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>build/package/OpenDJ-2.5.0</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
diff --git a/opendj-sdk/opends/src/site/site.xml b/opendj-sdk/opends/src/site/site.xml
new file mode 100644
index 0000000..508429e
--- /dev/null
+++ b/opendj-sdk/opends/src/site/site.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ! CCPL HEADER START
+ !
+ ! This work is licensed under the Creative Commons
+ ! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
+ ! To view a copy of this license, visit
+ ! http://creativecommons.org/licenses/by-nc-nd/3.0/
+ ! or send a letter to Creative Commons, 444 Castro Street,
+ ! Suite 900, Mountain View, California, 94041, USA.
+ !
+ ! You can also obtain a copy of the license at
+ ! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
+ ! See the License for the specific language governing permissions
+ ! and limitations under the License.
+ !
+ ! If applicable, add the following below this CCPL HEADER, with the fields
+ ! enclosed by brackets "[]" replaced with your own identifying information:
+ ! Portions Copyright [yyyy] [name of copyright owner]
+ !
+ ! CCPL HEADER END
+ !
+ ! Copyright 2011 ForgeRock AS
+ !
+-->
+<project name="${project.name}" xmlns="http://maven.apache.org/DECORATION/1.0.1"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd">
+
+ <skin>
+ <groupId>org.forgerock.commons</groupId>
+ <artifactId>forgerock-community-skin</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </skin>
+ <publishDate position="right" format="yyyy.MM.dd" />
+ <version position="right" />
+
+ <body>
+ <breadcrumbs>
+ <item name="Developer Community" href="http://www.forgerock.org" />
+ <item name="OpenDJ" href="http://opendj.forgerock.org" />
+ <item name="OpenDJ Directory Server" href="../opendj-server" />
+ </breadcrumbs>
+
+ <menu name="OpenDJ">
+ <item name="Welcome" href="../index.html" />
+ <item name="News" href="../news.html" />
+ <item name="Downloads" href="http://www.forgerock.com/downloads-opendj.html" />
+ <item name="FAQ" href="../faq.html" />
+ <item name="Wiki" href="http://wikis.forgerock.org/opendj/" />
+ <item name="Mailing Lists" href="../mail-lists.html" />
+ <item name="Support" href="http://forgerock.com/subscriptions.html" />
+ <item name="Partners" href="http://forgerock.com/partners.html" />
+ </menu>
+
+ <menu name="OpenDJ Directory Server">
+ <item name="About" href="index.html" />
+ </menu>
+
+ <menu name="OpenDJ LDAP SDK">
+ <item name="About" href="../opendj-ldap-sdk" />
+ <item name="Examples" href="../opendj-ldap-sdk-examples" />
+ <item name="Toolkit" href="../opendj-ldap-toolkit" />
+ </menu>
+
+ <menu name="OpenDJ Documentation">
+ <item name="All Formats" href="../docs.html" />
+ <item name="Release Notes" href="../doc/release-notes/OpenDJ-Release-Notes.html" />
+ <item name="Installation Guide" href="../doc/install-guide/OpenDJ-Install-Guide.html" />
+ <item name="Administration Guide" href="../doc/admin-guide/OpenDJ-Admin-Guide.html" />
+ <item name="Config Reference" href="404.html" alt="TODO" />
+ <item name="Plugin Javadoc" href="404.html" alt="TODO" />
+ </menu>
+
+ <menu name="OpenDJ Development">
+ <item name="Join"
+ href="https://idp.forgerock.org/openam/UI/Login?service=register" />
+ <item name="Continuous Integration" href="integration.html" />
+ <item name="Maven Repository" href="distribution-management.html" />
+ <item name="Issue Tracking" href="issue-tracking.html" />
+ <item name="License" href="license.html" />
+ <item name="Source Repository" href="source-repository.html" />
+ </menu>
+ </body>
+
+ <custom>
+ <googleAnalytics>UA-23412190-2</googleAnalytics>
+ <openproject>
+ <href>http://opendj.org/</href>
+ <src>./images/opendj-tagline-179x65.png</src>
+ <alt>OpenDJ</alt>
+ </openproject>
+ </custom>
+</project>
diff --git a/opendj-sdk/opends/src/site/xdoc/index.xml b/opendj-sdk/opends/src/site/xdoc/index.xml
new file mode 100644
index 0000000..55dbefe
--- /dev/null
+++ b/opendj-sdk/opends/src/site/xdoc/index.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ! CCPL HEADER START
+ !
+ ! This work is licensed under the Creative Commons
+ ! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
+ ! To view a copy of this license, visit
+ ! http://creativecommons.org/licenses/by-nc-nd/3.0/
+ ! or send a letter to Creative Commons, 444 Castro Street,
+ ! Suite 900, Mountain View, California, 94041, USA.
+ !
+ ! You can also obtain a copy of the license at
+ ! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
+ ! See the License for the specific language governing permissions
+ ! and limitations under the License.
+ !
+ ! If applicable, add the following below this CCPL HEADER, with the fields
+ ! enclosed by brackets "[]" replaced with your own identifying information:
+ ! Portions Copyright [yyyy] [name of copyright owner]
+ !
+ ! CCPL HEADER END
+ !
+ ! Copyright 2011 ForgeRock AS
+ !
+-->
+<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
+ <properties>
+ <title>About OpenDJ Directory Server</title>
+ <author email="opendj-dev@forgerock.org">ForgeRock AS</author>
+ </properties>
+ <body>
+ <section name="About OpenDJ Directory Server">
+ <p>
+ OpenDJ is an LDAPv3 compliant directory service, developed for the Java
+ platform, providing a high performance, highly available, and secure
+ store for the identities managed by your organization. Its easy
+ installation process, combined with the power of the Java platform makes
+ OpenDJ the simplest, fastest directory to deploy and manage.
+ </p>
+ </section>
+ <section name="Get the OpenDJ Directory Server">
+ <p>
+ You can obtain the OpenDJ Directory Server using any of the following
+ methods:
+ </p>
+ <subsection name="Download">
+ <p>
+ By far the simplest method is to download it directly from the
+ ForgeRock Maven
+ <a
+ href="http://maven.forgerock.org/repo/snapshots/org/forgerock/opendj/opendj-server/2.5.0-SNAPSHOT">repository</a>
+ or from the ForgeRock
+ <a href="http://www.forgerock.com/downloads-opendj.html">download</a>
+ page.
+ </p>
+ </subsection>
+ <subsection name="Build">
+ <p>
+ For the DIY enthusiasts you can build it yourself by checking out the
+ latest code using
+ <a href="source-repository.html">Subversion</a>
+ and building it with Ant or Maven 3.
+ </p>
+ </subsection>
+ </section>
+ <section name="Getting started">
+ <p>
+ Once you have obtained a copy of the OpenDJ Directory Server, read the
+ <a href="../doc/install-guide/OpenDJ-Install-Guide.html">Installation Guide</a>
+ for further instructions.
+ </p>
+ </section>
+ </body>
+</document>
--
Gitblit v1.10.0