pom.xml revision 18d931079251c0d1089187eff63bc9ae35acd749
999N/A<?xml version="1.0" encoding="UTF-8"?>
999N/A<!--
999N/A* The contents of this file are subject to the terms of the Common Development and
999N/A* Distribution License (the License). You may not use this file except in compliance with the
999N/A* License.
999N/A*
999N/A* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
999N/A* specific language governing permission and limitations under the License.
999N/A*
999N/A* When distributing Covered Software, include this CDDL Header Notice in each file and include
999N/A* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
999N/A* Header, with the fields enclosed by brackets [] replaced by your own identifying
999N/A* information: "Portions copyright [year] [name of copyright owner]".
999N/A*
999N/A* Copyright 2015 ForgeRock AS.
999N/A -->
999N/A<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/xsd/maven-4.0.0.xsd">
999N/A <modelVersion>4.0.0</modelVersion>
999N/A <parent>
999N/A <groupId>org.forgerock.openam</groupId>
999N/A <artifactId>openam-ui</artifactId>
999N/A <version>13.0.0-SNAPSHOT</version>
999N/A </parent>
999N/A
999N/A <artifactId>openam-ui-ria</artifactId>
999N/A <name>OpenAM RIA Web UI</name>
999N/A <packaging>pom</packaging>
999N/A
999N/A <properties>
999N/A <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
999N/A <codemirror.version>4.10</codemirror.version>
999N/A <handlebars.version>3.0.3</handlebars.version>
999N/A </properties>
999N/A
999N/A <dependencies>
999N/A <dependency>
999N/A <groupId>org.forgerock.openam</groupId>
999N/A <artifactId>openam-ui-common</artifactId>
999N/A <version>${project.version}</version>
999N/A <type>zip</type>
999N/A <classifier>www</classifier>
999N/A </dependency>
999N/A <dependency>
999N/A <groupId>org.forgerock.commons.ui</groupId>
999N/A <artifactId>forgerock-ui-user</artifactId>
999N/A <type>zip</type>
999N/A <classifier>www</classifier>
999N/A </dependency>
<dependency>
<groupId>org.mozilla</groupId>
<artifactId>rhino</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>selectize-non-standalone</artifactId>
<version>0.12.1</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>sifter</artifactId>
<version>0.4.1</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>microplugin</artifactId>
<version>0.0.3</version>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>qrcode</artifactId>
<version>1.0.0</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jquery-nestingSortable</artifactId>
<version>0.9.12</version>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jsoneditor</artifactId>
<version>0.7.9</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>bootstrap-tabdrop</artifactId>
<version>1.0</version>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>CodeMirror</artifactId>
<version>${codemirror.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>bootstrap-clockpicker</artifactId>
<version>0.0.7</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>bootstrap-clockpicker</artifactId>
<version>0.0.7</version>
<classifier>min</classifier>
<type>css</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>bootstrap-datetimepicker</artifactId>
<version>4.14.30</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>bootstrap-datetimepicker</artifactId>
<version>4.14.30</version>
<classifier>min</classifier>
<type>css</type>
</dependency>
<dependency>
<!-- handlebars need for fix the processing dependencies in the release build -->
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>handlebars</artifactId>
<version>${handlebars.version}</version>
<type>js</type>
<classifier>min</classifier>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>less</artifactId>
<version>1.5.1</version>
<classifier>rhino</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>r</artifactId>
<version>2.1.10</version>
<type>js</type>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/js</directory>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>${basedir}/src/test/js</directory>
</testResource>
<testResource>
<directory>${basedir}/src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<configuration>
<disallowInsecureCharsInRegExp>false</disallowInsecureCharsInRegExp>
<assumeConsoleAlertEtc>true</assumeConsoleAlertEtc>
<excludes>
<exclude>**/libs/*.js</exclude>
<exclude>**/*Test.js</exclude>
</excludes>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>jslint</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>resources</goal>
<goal>testResources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.forgerock.commons.ui</groupId>
<artifactId>forgerock-ui-user</artifactId>
<version>${forgerock.ui.version}</version>
<type>zip</type>
<classifier>www</classifier>
</artifactItem>
<artifactItem>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-ui-common</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>www</classifier>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>unpack-codemirror</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>CodeMirror</artifactId>
<type>zip</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>copy-dependencies-less</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>less</includeArtifactIds>
<includeTypes>js</includeTypes>
<outputDirectory>${project.build.directory}/less</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
<execution>
<id>copy-dependencies-r</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>r</includeArtifactIds>
<includeTypes>js</includeTypes>
<outputDirectory>${project.build.directory}/optimization</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>prepare-working-dir</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>www</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/dir.xml</descriptor>
</descriptors>
</configuration>
</execution>
<execution>
<id>build-final-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/zip.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-less-to-css</id>
<phase>prepare-package</phase>
<configuration>
<target name="compileLess">
<java classname="org.mozilla.javascript.tools.shell.Main" fork="true">
<classpath refid="maven.compile.classpath" />
<arg value="${project.build.directory}/less/less-1.5.1-rhino.js" />
<arg value="${project.build.directory}/www/css/styles.less" />
<arg value="${project.build.directory}/www/css/styles.css" />
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>js/css optimization</id>
<phase>prepare-package</phase>
<configuration>
<target name="optimize">
<property name="requirejs.dir" value="${project.build.directory}/optimization" />
<java classname="org.mozilla.javascript.tools.shell.Main" failonerror="true">
<classpath refid="maven.compile.classpath" />
<arg value="${requirejs.dir}/r-2.1.10.js" />
<arg value="-o" />
<arg value="${basedir}/src/main/optimization/app.build.js" />
</java>
<!--
<concat destfile="${minified.dir}/main_with_licenses.js">
<fileset file="${requirejs.dir}/license" />
<fileset file="${minified.dir}/main.js" />
</concat>
<move file="${minified.dir}/main_with_licenses.js" tofile="${minified.dir}/main.js" />
-->
<java classname="org.mozilla.javascript.tools.shell.Main">
<classpath refid="maven.compile.classpath" />
<arg value="${requirejs.dir}/r-2.1.10.js" />
<arg value="-o" />
<arg value="cssIn=${project.build.directory}/www/css/styles.css" />
<arg value="out=${project.build.directory}/www/css/styles_min.css" />
<arg value="optimizeCss=standard" />
<arg value="cssImportIgnore=bootstrap-3.3.5-custom.css" />
</java>
<move file="${project.build.directory}/www/css/styles_min.css" tofile="${project.build.directory}/www/css/styles.css" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>