<?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 legal-notices/CDDLv1_0.txt
! 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
! 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 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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>opendj-server-parent</artifactId>
<version>3.0.0</version>
</parent>
<artifactId>opendj-dsml-servlet</artifactId>
<name>OpenDJ DSML Gateway</name>
<description>OpenDJ DSML Gateway</description>
<packaging>war</packaging>
<properties>
<!-- Folder to store the ForgeRock binary license. The license url could be specified with the option -Dbinary.license.url on the maven command line -->
</properties>
<dependencies>
<!-- ForgeRock libraries -->
<dependency>
<artifactId>forgerock-util</artifactId>
</dependency>
<dependency>
<artifactId>i18n-core</artifactId>
</dependency>
<dependency>
<artifactId>i18n-slf4j</artifactId>
</dependency>
<!-- OpenDJ SDK dependencies -->
<dependency>
<artifactId>opendj-cli</artifactId>
</dependency>
<dependency>
<artifactId>opendj-core</artifactId>
</dependency>
<!-- OpenDJ Server dependencies -->
<dependency>
<artifactId>opendj-config</artifactId>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<type>jar</type>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>ca_ES</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>de</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>es</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>fr</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>ja</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>ko</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>pl</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>zh_CN</classifier>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
<classifier>zh_TW</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Parse version to generate properties (major.version, minor.version, ...) -->
<plugin>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Ensure that our usage of the jaxb2-maven-plugin is JDK 8 compatible -->
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<id>set-additional-system-properties</id>
<goals>
<goal>set-system-properties</goal>
</goals>
<configuration>
<properties>
<property>
<value>all</value>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>
<!-- Generate DSML code from XML files -->
<plugin>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>prepare-dsml-library</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<target>2.1</target>
<npa>true</npa>
</configuration>
</execution>
</executions>
</plugin>
<!-- WAR artefact is build by the assembly plugin -->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>${product.name}-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-DSML</warName>
<webResources>
<!-- Include CDDLv1_0.txt -->
<resource>
<excludes>
</excludes>
</resource>
<!-- Include THIRDPARTYREADME.txt and the FR binary license (if exists) -->
<resource>
<directory>legal-notices</directory>
</resource>
<!-- Add web and sun-web.xml -->
<resource>
<targetPath>WEB-INF</targetPath>
</resource>
<!-- Add schema file -->
<resource>
<includes>
</includes>
</resource>
</webResources>
<!-- Excludes transitive dependencies -->
<packagingExcludes>
</packagingExcludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!--
Profile to run precommit tasks: checkstyle, copyright (TODO), SVN eol check (TODO),
unit-tests
Tests are not run by default due to running time (average of 8-10 minutes).
-->
<profile>
<id>precommit</id>
<build>
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.14</version>
<executions>
<!-- Disable default from parent -->
<execution>
<id>check-src-and-tests</id>
<phase>none</phase>
<goals>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>