pom.xml revision 90a8f3aab2f0cb5435bfe6bf073162e31e75f856
<?xml version="1.0" encoding="UTF-8"?>
<!--
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2011-2015 ForgeRock AS. All Rights Reserved
*
* 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
* http://forgerock.org/license/CDDLv1.0.html
* 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
* at http://forgerock.org/license/CDDLv1.0.html
* 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>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-distribution</artifactId>
<version>13.0.0-SNAPSHOT</version>
</parent>
<!-- Component Definition -->
<name>OpenAM Distribution ssoAdminTools</name>
<description>OpenAM Distribution SSO Admin Tools Kit.
</description>
<artifactId>openam-distribution-ssoadmintools</artifactId>
<packaging>pom</packaging>
<properties>
<setupArtifactIDs>opendj-server,forgerock-util,json,xalan,xercesImpl,xml-apis,xmlsec,openam-core,openam-entitlements,openam-shared,openam-dtd-schema,openam-rest,openam-license-manager-cli,openam-license-core,openam-audit-context,forgerock-guice-core,guice,guice-assistedinject,commons-lang,commons-collections,javax.inject,slf4j-api,slf4j-nop,opendj-ldap-sdk,i18n-core,openam-ldap-utils,grizzly-framework</setupArtifactIDs>
</properties>
<!-- Build -->
<build>
<finalName>SSOAdminTools-${project.version}</finalName>
<plugins>
<!-- Get the relevant license from Artifactory -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>Copy license</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${forgerock.license.groupId}</groupId>
<artifactId>${forgerock.license.artifactId}</artifactId>
<version>${forgerock.license.version}</version>
<type>txt</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/legal-notices</outputDirectory>
<destFileName>license.txt</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>Unix setup classpath</id>
<phase>prepare-package</phase>
<goals>
<goal>build-classpath</goal>
</goals>
<configuration>
<fileSeparator>/</fileSeparator>
<pathSeparator>:</pathSeparator>
<prefix>lib</prefix>
<includeArtifactIds>${setupArtifactIDs}</includeArtifactIds>
<outputProperty>unix.setup.classpath</outputProperty>
</configuration>
</execution>
<execution>
<id>Windows setup classpath</id>
<phase>prepare-package</phase>
<goals>
<goal>build-classpath</goal>
</goals>
<configuration>
<fileSeparator>\</fileSeparator>
<pathSeparator>;</pathSeparator>
<prefix>lib</prefix>
<includeArtifactIds>${setupArtifactIDs}</includeArtifactIds>
<outputProperty>windows.setup.classpath</outputProperty>
</configuration>
</execution>
</executions>
</plugin>
<!-- Pre-Packaging step for Zip Elements. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>zip-pre-packaging</id>
<phase>compile</phase>
<configuration>
<target>
<property name="build.class.path" refid="maven.compile.classpath" />
<property name="project.basedir" value="./" />
<property name="target.resources.dir" value="${project.build.directory}/resources" />
<property name="resources.i18n.dir" value="${project.basedir}/openam-locale/src/main/resources/locale" />
<tstamp>
<format property="war.time.stamp" pattern="yyyy-MMMM-dd HH:mm" locale="en,UK" />
</tstamp>
<property name="version.set" value="${project.version}" />
<filter token="DATESTAMP" value="${war.time.stamp}" />
<filter token="VERSION" value="${version.set}" />
<!-- Set our Version Information for the Package -->
<copy todir="${project.build.directory}/resources" overwrite="true" filtering="true" flatten="yes">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/config">
<include name="serviceDefaultValues.properties" />
</fileset>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>admintools-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>gnu</tarLongFileMode>
<descriptors>
<descriptor>src/main/assembly/openAMToolsAssembly_Descriptor.xml</descriptor>
</descriptors>
<escapeString>\</escapeString>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-entitlements</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-installtools</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-core</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-cli-definitions</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-cli-impl</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-federation-library</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>OpenFM</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-oauth</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-dtd-schema</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-jaxrpc-schema</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-saml2-schema</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-auth-scripted</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-scripting</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-license-manager-cli</artifactId>
</dependency>
<dependency>
<groupId>org.apache.santuario</groupId>
<artifactId>xmlsec</artifactId>
</dependency>
<dependency>
<groupId>xerces-J</groupId>
<artifactId>xml-apis</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging-api</artifactId>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-ldap-sdk</artifactId>
</dependency>
</dependencies>
</project>