<?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/opendj/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-2015 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>2.7.0-SNAPSHOT</version>
</parent>
<artifactId>opendj-server</artifactId>
<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>
<inceptionYear>2006</inceptionYear>
<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>
<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>
<properties>
<ant.home>ext/ant</ant.home>
<BUILD_NUMBER>0</BUILD_NUMBER>
<checkstyleHeaderLocation>org/forgerock/checkstyle/opendj-java-header</checkstyleHeaderLocation>
<!-- START Documentation properties -->
<docTargetVersion>${project.version}</docTargetVersion><!-- Reset before final publication -->
<docPreviousVersion>2.6.0</docPreviousVersion>
<sdkDocTargetVersion>${docTargetVersion}</sdkDocTargetVersion>
<frDocPluginVersion>3.0.0-SNAPSHOT</frDocPluginVersion>
<gaId>UA-23412190-8</gaId>
<!--
Release date and publication date are set at release build time.
-D"releaseDate=Software release date: January 1, 1970"
-D"pubDate=Publication date: December 31, 1969"
At all other times, the dates should be empty.
-->
<releaseDate />
<softwareReleaseDate>${releaseDate}</softwareReleaseDate>
<pubDate />
<publicationDate>${pubDate}</publicationDate>
<!-- Permit doc build to override relative locations of non DocBook content -->
<coreDocBase>http://opendj.forgerock.org/doc/</coreDocBase>
<configRefBase>http://opendj.forgerock.org/opendj-server/configref/</configRefBase>
<serverJavadocBase>http://opendj.forgerock.org/opendj-server/javadoc/</serverJavadocBase>
<sdkJavadocBase>http://opendj.forgerock.org/opendj-ldap-sdk/apidocs/</sdkJavadocBase>
<!-- END Documentation properties -->
</properties>
<build>
<directory>build</directory>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>clean</id>
<phase>clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<delete dir="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>
<execution>
<id>generate-docs</id>
<phase>pre-site</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<ant target="javadoc" />
<ant target="configguide" />
<ant target="generateLogReference" />
</target>
</configuration>
</execution>
<execution>
<id>cp-generated-docs</id>
<phase>site</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy todir="build/site/configref">
<fileset dir="build/docgen/configuration_guide/" />
</copy>
<copy todir="build/site/javadoc">
<fileset dir="build/javadoc/" />
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.forgerock.commons</groupId>
<artifactId>forgerock-doc-maven-plugin</artifactId>
<version>${frDocPluginVersion}</version>
<inherited>false</inherited>
<configuration>
<projectName>OpenDJ</projectName>
<projectVersion>${docTargetVersion}</projectVersion>
<releaseVersion>${docTargetVersion}</releaseVersion>
<googleAnalyticsId>${gaId}</googleAnalyticsId>
<!-- This is the default, here to override the outdated inherited setting. -->
<docbkxSourceDirectory>${basedir}/src/main/docbkx</docbkxSourceDirectory>
</configuration>
<executions>
<execution>
<id>pre-process-doc</id>
<phase>pre-site</phase>
<goals>
<goal>process</goal>
</goals>
</execution>
<execution>
<id>build-doc</id>
<phase>pre-site</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
<execution>
<id>layout-doc</id>
<phase>site</phase>
<goals>
<goal>site</goal>
</goals>
</execution>
<execution>
<id>layout-release</id>
<phase>site</phase>
<goals>
<goal>release</goal>
</goals>
</execution>
</executions>
</plugin>
<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>build/site/javadoc</directory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>build/package/OpenDJ-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}.zip</file>
<type>zip</type>
</artifact>
<artifact>
<file>build/package/OpenDJ-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-DSML.war</file>
<type>war</type>
</artifact>
<artifact>
<file>build/package/OpenDJ-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}/lib/OpenDJ.jar</file>
<type>jar</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<!-- Required for release:perform: the parent pom specifies a value
for "arguments" in the plugin configuration. This prevents
command line setting of the option. -->
<arguments>-Penforce -Dopendmk.lib.dir=${opendmk.lib.dir}</arguments>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>tests-only</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<inherited>false</inherited>
<executions>
<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="test" />
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>