pom.xml revision e8721886dbfd32e88cc7077cbee4b6bb1b44b443
<?xml version="1.0" encoding="UTF-8"?>
<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>
<!--
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2011-2012 ForgeRock Inc. 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]"
*
-->
<!-- Parent Project -->
<parent>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-distribution</artifactId>
<version>10.1.0-SNAPSHOT</version>
</parent>
<!-- Component Definition -->
<name>OpenAM Distribution ADM Setup</name>
<description>OpenAM Distribution ADM Setup.
</description>
<artifactId>openam-distribution-amadmsetup</artifactId>
<version>10.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<organization>
<name>ForgeRock</name>
<url>http://www.forgerock.com</url>
</organization>
<!-- Build -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-core</artifactId>
<version>10.1.0-SNAPSHOT</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<includes>com/sun/identity/tools/bundles/*</includes>
</artifactItem>
</artifactItems>
</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>package</phase>
<configuration>
<target>
<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}"/>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale">
<include name="amadmtoolssetup.properties"/>
</fileset>
<globmapper from="*.properties" to="*_en.properties"/>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale">
<include name="amadmtoolssetup.properties"/>
</fileset>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale/de_DE">
<include name="amadmtoolssetup_de.properties"/>
</fileset>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale/es_ES">
<include name="amadmtoolssetup_es.properties"/>
</fileset>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale/fr_FR">
<include name="amadmtoolssetup_fr.properties"/>
</fileset>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale/ja_JP">
<include name="amadmtoolssetup_ja.properties"/>
</fileset>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale/ko_KR">
<include name="amadmtoolssetup_ko.properties"/>
</fileset>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale/zh_CN">
<include name="amadmtoolssetup_zh.properties"/>
</fileset>
</copy>
<copy todir="${project.build.directory}/classes/com/sun/identity/tools/bundles" filtering="true">
<fileset dir="${project.basedir}/openam-server-only/src/main/resources/locale/zh_TW">
<include name="amadmtoolssetup_zh_TW.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>openam-amadmsetup</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>openam-distribution-amadmsetup-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>gnu</tarLongFileMode>
<descriptors>
<descriptor>src/main/assembly/openAMSetupAssembly_Descriptor.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-core</artifactId>
</dependency>
</dependencies>
</project>