pom.xml revision 210bf50377a374f27b4cbe2cb895d76fbd0e3446
0N/A<?xml version="1.0" encoding="UTF-8"?>
1472N/A<!--
0N/A ! CDDL HEADER START
0N/A !
0N/A ! The contents of this file are subject to the terms of the
0N/A ! Common Development and Distribution License, Version 1.0 only
0N/A ! (the "License"). You may not use this file except in compliance
0N/A ! with the License.
0N/A !
0N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
0N/A ! or http://forgerock.org/license/CDDLv1.0.html.
0N/A ! See the License for the specific language governing permissions
0N/A ! and limitations under the License.
0N/A !
0N/A ! When distributing Covered Code, include this CDDL HEADER in each
0N/A ! file and include the License file at
0N/A ! legal-notices/CDDLv1_0.txt. If applicable,
0N/A ! add the following below this CDDL HEADER, with the fields enclosed
1472N/A ! by brackets "[]" replaced with your own identifying information:
1472N/A ! Portions Copyright [yyyy] [name of copyright owner]
1472N/A !
0N/A ! CDDL HEADER END
0N/A !
0N/A ! Copyright 2015 ForgeRock AS.
0N/A !
0N/A-->
0N/A<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">
0N/A <modelVersion>4.0.0</modelVersion>
0N/A
0N/A <parent>
0N/A <groupId>org.forgerock.opendj</groupId>
0N/A <artifactId>opendj-server-parent</artifactId>
0N/A <version>3.0.0-M5</version>
0N/A </parent>
0N/A
0N/A <artifactId>opendj-dsml-servlet</artifactId>
0N/A <name>OpenDJ DSML Gateway</name>
0N/A <description>OpenDJ DSML Gateway</description>
0N/A <packaging>war</packaging>
0N/A
0N/A <properties>
0N/A </properties>
0N/A
0N/A <dependencies>
0N/A <!-- External dependencies -->
1504N/A <dependency>
0N/A <groupId>org.slf4j</groupId>
0N/A <artifactId>slf4j-api</artifactId>
0N/A </dependency>
0N/A
0N/A <!-- ForgeRock librairies -->
0N/A <dependency>
0N/A <groupId>org.forgerock.commons</groupId>
0N/A <artifactId>forgerock-util</artifactId>
0N/A </dependency>
0N/A
0N/A <dependency>
1504N/A <groupId>org.forgerock.commons</groupId>
0N/A <artifactId>i18n-core</artifactId>
0N/A </dependency>
0N/A
0N/A <dependency>
0N/A <groupId>org.forgerock.commons</groupId>
0N/A <artifactId>i18n-slf4j</artifactId>
0N/A </dependency>
<!-- OpenDJ SDK dependencies -->
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-cli</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-core</artifactId>
</dependency>
<!-- OpenDJ Server dependencies -->
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-config</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<type>jar</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>ca_ES</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>de</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>es</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>fr</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>ja</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>ko</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>pl</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>zh_CN</classifier>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<classifier>zh_TW</classifier>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Parse version to generate properties (major.version, minor.version, ...) -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<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 -->
<groupId>org.codehaus.mojo</groupId>
<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>
<name>javax.xml.accessExternalSchema</name>
<value>all</value>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>
<!-- Generate DSML code from XML files -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>prepare-dsml-library</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/gen</outputDirectory>
<schemaDirectory>${basedir}/resources/schema</schemaDirectory>
<schemaFiles>DSMLv2.xsd</schemaFiles>
<packageName>org.opends.dsml.protocol</packageName>
<bindingDirectory>${basedir}/resources/schema</bindingDirectory>
<bindingFiles>bindings.xjb</bindingFiles>
<target>2.1</target>
<npa>true</npa>
</configuration>
</execution>
</executions>
</plugin>
<!-- WAR artefact is build by the assembly plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>${product.name}-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-DSML</warName>
<webResources>
<!-- Include CDDLv1_0.txt and binary license file (if exists) -->
<resource>
<targetPath>WEB-INF/legal-notices</targetPath>
<directory>${basedir}/legal-notices</directory>
<excludes>
<exclude>README.txt</exclude>
</excludes>
</resource>
<!-- Include THIRDPARTYREADME.txt -->
<resource>
<targetPath>WEB-INF/legal-notices</targetPath>
<directory>legal-notices</directory>
<includes>
<include>THIRDPARTYREADME.txt</include>
</includes>
</resource>
<!-- Add web and sun-web.xml -->
<resource>
<targetPath>WEB-INF</targetPath>
<directory>resources/webapp</directory>
</resource>
<!-- Add schema file -->
<resource>
<targetPath>WEB-INF/classes/resources</targetPath>
<directory>${basedir}/resources/schema</directory>
<includes>
<include>DSMLv2.xsd</include>
</includes>
</resource>
</webResources>
<!-- Excludes transitive dependencies -->
<packagingExcludes>
WEB-INF/lib/activation-*.jar,
WEB-INF/lib/chf-*.jar,
WEB-INF/lib/forgerock-persistit*.jar,
WEB-INF/lib/grizzly-*.jar,
WEB-INF/lib/jackson-*.jar,
WEB-INF/lib/javax*.jar,
WEB-INF/lib/je*.jar,
WEB-INF/lib/json-*.jar,
WEB-INF/lib/opendj-grizzly*.jar,
WEB-INF/lib/opendj-rest2ldap*.jar,
WEB-INF/lib/opendj-server-${project.version}*.jar
</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>
<groupId>org.apache.maven.plugins</groupId>
<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>