pom.xml revision 4a48635cccc646ac479830fd4df0ee8e10c5bd8d
<?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 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]"
*
-->
<!-- Parent Project -->
<parent>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam</artifactId>
<version>10.2.0-SNAPSHOT</version>
</parent>
<!-- Component Definition -->
<name>OpenAM Common Locale Bundles</name>
<description>OpenAM Common Locale Bundles</description>
<artifactId>openam-locale</artifactId>
<packaging>jar</packaging>
<!-- Build -->
<build>
<plugins>
<plugin>
<groupId>org.forgerock.commons</groupId>
<artifactId>i18n-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate-messages</goal>
</goals>
<configuration>
<messageFiles>
<messageFile>org/forgerock/openam/session/ha/i18n/amsessionstore.properties</messageFile>
</messageFiles>
</configuration>
</execution>
</executions>
</plugin>
<!-- Pre-Packaging step for WAR elements. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>jar-pre-packaging</id>
<phase>validate</phase>
<configuration>
<target>
<property name="locale.resources" value="${project.basedir}/src/main/resources" />
<property
name="locale.target.resources.dir" value="${project.build.directory}/classes" />
<property name="locale.resources.i18n.dir" value="${locale.resources}/locale" />
<property name="library.resources.i18n.dir" value="${locale.resources}/federation-locale" />
<property name="openfm.resources.i18n.dir" value="${locale.resources}/openfm-locale" />
<copy todir="${locale.target.resources.dir}" flatten="true">
<fileset dir="${locale.resources.i18n.dir}" includes="*.properties">
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
<fileset dir="${library.resources.i18n.dir}" includes="*.properties">
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
<fileset dir="${openfm.resources.i18n.dir}" includes="*.properties">
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
<globmapper from="*.properties" to="*_en.properties"/>
</copy>
<concat destfile="${locale.target.resources.dir}/amSDK.properties">
<fileset dir="${locale.resources.i18n.dir}">
<include name="Services.properties"/>
<include name="DSConfig.properties"/>
<include name="ums.properties"/>
<include name="sso.properties"/>
<include name="SMS.properties"/>
<include name="authentication_util.properties"/>
</fileset>
</concat>
<java classname="com.sun.identity.tools.nightly.MergeSDKProperties"
fork="true" failOnError="true"
classpath="${project.basedir}/openam-tools/openam-build-tools/target/openam-build-tools-${project.version}.jar:${build.class.path}">
<arg value="${locale.resources.i18n.dir}"/>
<arg value="${locale.target.resources.dir}"/>
</java>
<copy file="${locale.target.resources.dir}/amSDK.properties"
tofile="${locale.target.resources.dir}/amSDK_en.properties"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Establish our generated-sources Directory for Compile Inclusion. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/annotations</source>
<source>${project.build.directory}/generated-sources/messages</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<index>true</index>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
<manifestEntries>
<Specification-Title>OpenAM Common Locale Bundle Components</Specification-Title>
<Specification-Version>${project.version} - ${maven.build.timestamp}</Specification-Version>
<Specification-Vendor>ForgeRock</Specification-Vendor>
<Implementation-Title>OpenAM Common Locale Bundle Components</Implementation-Title>
<Implementation-Version>${project.version} - ${maven.build.timestamp}</Implementation-Version>
<Implementation-Vendor>ForgeRock</Implementation-Vendor>
<Built-By>${user.name}</Built-By>
<Build-Jdk>${java.version}</Build-Jdk>
<Build-Time>${maven.build.timestamp}</Build-Time>
<Version>${project.version}</Version>
<Create-On>${maven.build.timestamp}</Create-On>
<SVN-Revision>R${svn-revision.revision}</SVN-Revision>
<!-- TODO Add License to Manifest -->
<License />
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<!-- Handled in antrun -->
<excludes>
<exclude>locale/**</exclude>
<exclude>federation-locale/**</exclude>
<exclude>openfm-locale/**</exclude>
</excludes>
</resource>
</resources>
</build>
<dependencies>
<dependency>
<groupId>org.forgerock.commons</groupId>
<artifactId>i18n-core</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-build-tools</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>