pom.xml revision 240f5b67f7d955657fe57057033db90e10e209c5
<?xml version="1.0" encoding="UTF-8"?>
<!--
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2011-2016 ForgeRock AS.
*
* 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
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Parent Project -->
<parent>
<artifactId>openam</artifactId>
<version>13.1.0-SNAPSHOT</version>
</parent>
<!-- Component Definition -->
<name>OpenAM Server Only</name>
<description>OpenAM Server Only Component</description>
<artifactId>openam-server-only</artifactId>
<packaging>war</packaging>
<!-- Build -->
<build>
<plugins>
<!-- OpenDJ 3.0: Pre-Pre-Packaging Step to download required Pre-Packaging Resources-->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>war-pre-packaging</id>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<artifactId>opendj-server-legacy</artifactId>
<type>zip</type>
</artifactItem>
</artifactItems>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
<execution>
<id>unpack</id>
<phase>validate</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<artifactId>openam-jaxrpc-schema</artifactId>
<type>jar</type>
<overWrite>false</overWrite>
</artifactItem>
<artifactItem>
<artifactId>openam-ui-ria</artifactId>
<classifier>www</classifier>
<type>zip</type>
<overWrite>false</overWrite>
<includes>**/*</includes>
</artifactItem>
<artifactItem>
<artifactId>openam-auth-deviceprint-scripts</artifactId>
<type>zip</type>
<overWrite>false</overWrite>
<includes>**/*.js</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>Copy license</id>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<type>txt</type>
<overWrite>true</overWrite>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- Pre-Packaging step for WAR elements. -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>war-pre-packaging</id>
<phase>validate</phase>
<configuration>
<target>
<property name="federation.xml.dir" value="${project.basedir}/openam-federation/OpenFM/src/main/resources/xml" />
<ant antfile="${project.basedir}/openam-server-prepare-war.xml">
<target name="openam-server-prepare-war" />
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<packagingExcludes>
</packagingExcludes>
<archive>
<manifestEntries>
<Specification-Title>OpenAM Server</Specification-Title>
<Specification-Vendor>ForgeRock</Specification-Vendor>
<Implementation-Title>OpenAM Server</Implementation-Title>
</Implementation-Version>
<Implementation-Vendor>ForgeRock</Implementation-Vendor>
</manifestEntries>
</archive>
<nonFilteredFileExtensions>
<!-- Exclude any binary files based upon File Types. -->
<nonFilteredFileExtension>bin</nonFilteredFileExtension>
<nonFilteredFileExtension>bkf</nonFilteredFileExtension>
<nonFilteredFileExtension>bmp</nonFilteredFileExtension>
<nonFilteredFileExtension>bz2</nonFilteredFileExtension>
<nonFilteredFileExtension>deb</nonFilteredFileExtension>
<nonFilteredFileExtension>dll</nonFilteredFileExtension>
<nonFilteredFileExtension>dmg</nonFilteredFileExtension>
<nonFilteredFileExtension>ear</nonFilteredFileExtension>
<nonFilteredFileExtension>exe</nonFilteredFileExtension>
<nonFilteredFileExtension>gif</nonFilteredFileExtension>
<nonFilteredFileExtension>gz</nonFilteredFileExtension>
<nonFilteredFileExtension>gzip</nonFilteredFileExtension>
<nonFilteredFileExtension>ico</nonFilteredFileExtension>
<nonFilteredFileExtension>jar</nonFilteredFileExtension>
<nonFilteredFileExtension>jks</nonFilteredFileExtension>
<nonFilteredFileExtension>jpg</nonFilteredFileExtension>
<nonFilteredFileExtension>jpeg</nonFilteredFileExtension>
<nonFilteredFileExtension>lz</nonFilteredFileExtension>
<nonFilteredFileExtension>png</nonFilteredFileExtension>
<nonFilteredFileExtension>pdf</nonFilteredFileExtension>
<nonFilteredFileExtension>rar</nonFilteredFileExtension>
<nonFilteredFileExtension>rpm</nonFilteredFileExtension>
<nonFilteredFileExtension>tar</nonFilteredFileExtension>
<nonFilteredFileExtension>tgz</nonFilteredFileExtension>
<nonFilteredFileExtension>war</nonFilteredFileExtension>
<nonFilteredFileExtension>zip</nonFilteredFileExtension>
<nonFilteredFileExtension>7z</nonFilteredFileExtension>
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
<!-- See: http://en.wikipedia.org/wiki/List_of_file_formats -->
</nonFilteredFileExtensions>
<webResources>
<webResource>
<includes>
<include>**/**</include>
</includes>
<targetPath>XUI</targetPath>
<filtering>true</filtering>
</webResource>
<webResource>
<includes>
<include>**/**</include>
</includes>
<excludes>
<exclude>META-INF</exclude>
<exclude>WEB-INF</exclude>
</excludes>
<targetPath />
<filtering>true</filtering>
</webResource>
<webResource>
<includes>
<include>**/**</include>
</includes>
<filtering>false</filtering>
</webResource>
<webResource>
<includes>
<include>**/**</include>
</includes>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
</webResource>
<webResource>
<!-- Copy all licenses into the legal-notices directory. -->
<includes>
<include>**/**</include>
</includes>
<targetPath>legal-notices</targetPath>
</webResource>
<webResource>
<!-- Copy all third-party licences too. -->
<includes>
<include>**/**</include>
</includes>
<targetPath>legal-notices</targetPath>
</webResource>
<webResource>
<!-- More third party licenses... -->
<includes>
<include>**/**</include>
</includes>
<targetPath>legal-notices</targetPath>
</webResource>
<webResource>
</directory>
<includes>
<include>*.wsdl</include>
</includes>
<filtering>false</filtering>
</webResource>
<webResource>
</directory>
<includes>
</includes>
<filtering>true</filtering>
</webResource>
<webResource>
<!-- This pickup the remaining moved elements build from the
"openam-server-prepare-war"
step from a Temp Area -->
<directory>${project.build.directory}/openam_TEMP
</directory>
<includes>
<include>**/**</include>
</includes>
<targetPath />
<filtering>false</filtering>
</webResource>
<webResource>
</directory>
<includes>
</includes>
<filtering>false</filtering>
</webResource>
<webResource>
<directory>${project.basedir}/openam-audit/openam-audit-configuration/src/main/resources</directory>
<includes>
</includes>
<filtering>false</filtering>
</webResource>
<webResource>
<includes>
<include>selfService*.properties</include>
</includes>
<filtering>false</filtering>
</webResource>
<!-- OpenDJ 3.0 Copy in an internal dependency needed by OpenAM -->
<webResource>
<includes>
</includes>
<filtering>false</filtering>
</webResource>
</webResources>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<includes>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>config/**</exclude>
<exclude>locale/**</exclude>
<exclude>federation-locale/**</exclude>
<exclude>openfm-locale/**</exclude>
<exclude>services/**</exclude>
<exclude>UI/**</exclude>
<exclude>*.conf</exclude>
</excludes>
</resource>
<resource>
<filtering>true</filtering>
<includes>
</includes>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>release</id>
<dependencies>
<dependency>
<artifactId>openam-auth-securid</artifactId>
</dependency>
</dependencies>
<properties>
</properties>
<build>
<plugins>
<!-- Transform the 'amAuth.xml' to add the SecurID auth module -->
<plugin>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<catalogs>
</catalogs>
<transformationSets>
<transformationSet>
<includes>
</includes>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>development</id>
<dependencies>
<dependency>
<artifactId>openam-auth-securid</artifactId>
</dependency>
</dependencies>
<properties>
</properties>
<build>
<plugins>
<!-- Transform the 'amAuth.xml' to add the SecurID auth module -->
<plugin>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>transform</goal>
</goals>
</execution>
</executions>
<configuration>
<catalogs>
</catalogs>
<transformationSets>
<transformationSet>
<includes>
</includes>
</transformationSet>
</transformationSets>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>precommit</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<script language="groovy"><![CDATA[
File libs = new File(project.getProperty("project.build.directory") +
File thirdParty = new File(project.getProperty("basedir") +
List published = thirdParty.readLines().findAll { s -> s.startsWith("Version:") }
List missing = [];
libs.eachLine { line ->
(line =~ /\(([^:\(]+):([^:]+):([^ ]+)/).each { match, groupId, artifactId, version ->
if (!groupId.startsWith("org.forgerock") &&
!published.any { s -> s.contains(artifactId) && s.contains(version) }) {
missing.add("$groupId:$artifactId:$version")
}
}
}
if (!missing.isEmpty()) {
throw new Exception("Missing libraries from THIRDPARTYREADME.txt:\n" +
missing.join("\n"))
}
]]></script>
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<artifactId>groovy-jsr223</artifactId>
<version>2.3.3</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<!-- By default this property is empty so as not to include the SecurID auth module -->
<auth.securID.xml />
</properties>
<dependencies>
<!-- Embedded OpenDJ Dependencies -->
<dependency>
<artifactId>opendj-server</artifactId>
</dependency>
<dependency>
<artifactId>opendj-core</artifactId>
</dependency>
<dependency>
<artifactId>opendj-grizzly</artifactId>
</dependency>
<dependency>
<artifactId>opendj-server-legacy</artifactId>
</dependency>
<dependency>
<artifactId>openam-http</artifactId>
</dependency>
<dependency>
<artifactId>chf-http-servlet</artifactId>
</dependency>
<dependency>
<artifactId>openam-ui-ria</artifactId>
<type>zip</type>
<classifier>www</classifier>
</dependency>
<dependency>
<artifactId>openam-core</artifactId>
</dependency>
<dependency>
<artifactId>openam-core-rest</artifactId>
</dependency>
<dependency>
<artifactId>chf-http-core</artifactId>
</dependency>
<dependency>
<artifactId>chf-client-apache-sync</artifactId>
</dependency>
<dependency>
<artifactId>forgerock-guice-servlet</artifactId>
</dependency>
<dependency>
<artifactId>openam-cli-definitions</artifactId>
</dependency>
<dependency>
<artifactId>openam-cli-impl</artifactId>
</dependency>
<dependency>
<artifactId>openam-server-auth-ui</artifactId>
</dependency>
<dependency>
<artifactId>openam-federation-library</artifactId>
</dependency>
<dependency>
<artifactId>OpenFM</artifactId>
</dependency>
<dependency>
<artifactId>openam-oauth</artifactId>
</dependency>
<dependency>
<artifactId>openam-uma</artifactId>
</dependency>
<dependency>
<artifactId>openam-dtd-schema</artifactId>
</dependency>
<dependency>
<artifactId>openam-jaxrpc-schema</artifactId>
</dependency>
<dependency>
<artifactId>openam-saml2-schema</artifactId>
</dependency>
<dependency>
<artifactId>openam-rest</artifactId>
</dependency>
<dependency>
<artifactId>openam-dashboard</artifactId>
</dependency>
<dependency>
<artifactId>openam-datastore</artifactId>
</dependency>
<dependency>
<artifactId>openam-radius-common</artifactId>
</dependency>
<dependency>
<artifactId>openam-radius-server</artifactId>
</dependency>
<dependency>
<artifactId>openam-audit-configuration</artifactId>
</dependency>
<dependency>
<artifactId>openam-audit-rest</artifactId>
</dependency>
<dependency>
<artifactId>openam-selfservice</artifactId>
</dependency>
<!-- Include all Authentication Modules -->
<dependency>
<artifactId>openam-auth-ad</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-anonymous</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-adaptive</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-application</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-cert</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-datastore</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-persistentcookie</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-deviceprint-module</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-hotp</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-scripted</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-device-id</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-httpbasic</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-jdbc</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-ldap</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-membership</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-msisdn</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-nt</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-oath</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-fr-oath</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-saml2</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-oauth2</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-radius</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-windowsdesktopsso</artifactId>
</dependency>
<dependency>
<artifactId>openam-auth-oidc</artifactId>
</dependency>
<dependency>
<artifactId>json-resource</artifactId>
</dependency>
<dependency>
<artifactId>json-resource-http</artifactId>
</dependency>
<!-- Oauth2 dependencies -->
<dependency>
<artifactId>oauth2-core</artifactId>
</dependency>
<dependency>
<artifactId>oauth2-restlet</artifactId>
</dependency>
<dependency>
<artifactId>openid-connect-restlet</artifactId>
</dependency>
<dependency>
<artifactId>openam-oauth2</artifactId>
</dependency>
<dependency>
<artifactId>openam-rest-sts</artifactId>
</dependency>
<dependency>
<artifactId>openam-common-sts</artifactId>
</dependency>
<dependency>
<artifactId>openam-client-sts</artifactId>
</dependency>
<dependency>
<artifactId>openam-token-service-sts</artifactId>
</dependency>
<dependency>
<artifactId>openam-publish-sts</artifactId>
</dependency>
<dependency>
<artifactId>openam-slf4j</artifactId>
</dependency>
<dependency>
<artifactId>openam-upgrade</artifactId>
</dependency>
<dependency>
<artifactId>freemarker</artifactId>
</dependency>
<dependency>
<scope>provided</scope>
</dependency>
<dependency>
<artifactId>jsp-api</artifactId>
</dependency>
<!-- XML -->
<!-- Xerces-J Required for fedlet -->
<dependency>
<groupId>xerces-J</groupId>
<artifactId>xercesImpl</artifactId>
</dependency>
<dependency>
<groupId>xerces-J</groupId>
<artifactId>xml-apis</artifactId>
</dependency>
<dependency>
<groupId>xerces-J</groupId>
<artifactId>xml-resolver</artifactId>
</dependency>
<dependency>
<groupId>xerces-J</groupId>
<artifactId>xml-serializer</artifactId>
</dependency>
</dependencies>
</project>