pom.xml revision 309d73dde207aa0136396e06979b5026b670762d
<?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-2013 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
* 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]"
*
-->
<!-- Parent Project -->
<parent>
<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>
<artifactId>i18n-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generate-messages</goal>
</goals>
<configuration>
<messageFiles>
</messageFiles>
</configuration>
</execution>
</executions>
</plugin>
<!-- Pre-Packaging step for WAR elements. -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>jar-pre-packaging</id>
<phase>validate</phase>
<configuration>
<target>
<property
name="locale.target.resources.dir" value="${project.build.directory}/classes" />
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
</copy>
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
<exclude name="Services.properties"/>
<exclude name="ums.properties"/>
<exclude name="sso.properties"/>
<exclude name="SMS.properties"/>
<exclude name="authentication_util.properties"/>
</fileset>
</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>
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>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<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-Vendor>ForgeRock</Specification-Vendor>
<Implementation-Title>OpenAM Common Locale Bundle Components</Implementation-Title>
<Implementation-Vendor>ForgeRock</Implementation-Vendor>
<!-- TODO Add License to Manifest -->
<License />
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<filtering>true</filtering>
<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>
<artifactId>i18n-core</artifactId>
</dependency>
<dependency>
<artifactId>openam-build-tools</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
</project>