pom.xml revision e1e6e3df82bcc247a7445f88089b103156e429ed
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose<?xml version="1.0" encoding="UTF-8"?>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose<!--
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ Copyright (c) 2011-2014 ForgeRock AS. All Rights Reserved
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ The contents of this file are subject to the terms
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ of the Common Development and Distribution License
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ (the License). You may not use this file except in
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ compliance with the License.
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ You can obtain a copy of the License at
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ http://forgerock.org/license/CDDLv1.0.html
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ See the License for the specific language governing
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ permission and limitations under the License.
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ When distributing Covered Code, include this CDDL
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ Header Notice in each file and include the License file
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ at http://forgerock.org/license/CDDLv1.0.html
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ If applicable, add the following below the CDDL Header,
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ with the fields enclosed by brackets [] replaced by
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ your own identifying information:
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose ~ "Portions Copyrighted [year] [name of copyright owner]"
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose -->
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose<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">
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <modelVersion>4.0.0</modelVersion>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <parent>
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina <artifactId>openidm-ui</artifactId>
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina <groupId>org.forgerock.openidm</groupId>
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina <version>3.1.0-RC1-SNAPSHOT</version>
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina </parent>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina <artifactId>openidm-ui-admin</artifactId>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <name>OpenIDM UI Admin</name>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <packaging>bundle</packaging>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <properties>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina </properties>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <dependencies>
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina <dependency>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <groupId>org.forgerock.commons.ui</groupId>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <artifactId>forgerock-ui-commons</artifactId>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <version>${forgerock-ui.version}</version>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <type>zip</type>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <classifier>www</classifier>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose </dependency>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <dependency>
61804568ce5ede3b1a699cda17c033dd6c23f0e3Sumit Bose <groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-ui-common</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>www</classifier>
</dependency>
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.rhino</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jquery-ui</artifactId>
<version>1.11.1</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jquery.jqGrid</artifactId>
<version>4.5.4</version>
<classifier>min</classifier>
<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>ldapjs-filter</artifactId>
<version>2253</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jquery-cron</artifactId>
<version>r2427</version>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>jquery-gentleSelect</artifactId>
<version>0.1.3.1</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>CodeMirror</artifactId>
<version>4.5.0</version>
<type>zip</type>
</dependency>
</dependencies>
<profiles>
<profile>
<!-- the profile to build the non-optimized UI -->
<id>Non optimized UI</id>
<activation>
<property>
<name>!openidm.ui.optimize</name>
</property>
</activation>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/js</directory>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<configuration>
<disallowInsecureCharsInRegExp>false</disallowInsecureCharsInRegExp>
<excludes>
<exclude>**/libs/ldapfilters/*.js</exclude>
<exclude>**/libs/*.js</exclude>
<exclude>**/libs/codemirror/lib/*.js</exclude>
<exclude>**/libs/codemirror/mode/javascript/*.js</exclude>
<exclude>**/libs/codemirror/mode/groovy/*.js</exclude>
<exclude>**/libs/codemirror/addon/display/*.js</exclude>
<exclude>**/libs/i18n/*.js</exclude>
<exclude>**/*Test.js</exclude>
</excludes>
</configuration>
<executions>
<execution>
<phase>prepare-package</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>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-forgerock-ui</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.forgerock.commons.ui</groupId>
<artifactId>forgerock-ui-commons</artifactId>
<version>${forgerock-ui.version}</version>
<type>zip</type>
<classifier>www</classifier>
</artifactItem>
<artifactItem>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-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>
<version>4.5.0</version>
<type>zip</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/zip.xml</descriptor>
</descriptors>
<finalName>www</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>package</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<Import-Package>*</Import-Package>
<Include-Resource>
public=target/www
</Include-Resource>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- the profile to build the optimized UI -->
<id>Optimized UI</id>
<activation>
<property>
<name>openidm.ui.optimize</name>
</property>
</activation>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/js</directory>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/libs/*.js</exclude>
<exclude>**/libs/i18n/*.js</exclude>
<exclude>**/*Test.js</exclude>
</excludes>
</configuration>
<executions>
<execution>
<phase>prepare-package</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>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-and-unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
<goal>unpack</goal>
</goals>
<configuration>
<includeGroupIds>org.apache.servicemix.bundles</includeGroupIds>
<artifactItems>
<artifactItem>
<groupId>org.forgerock.commons.ui</groupId>
<artifactId>forgerock-ui-commons</artifactId>
<version>${forgerock-ui.version}</version>
<type>zip</type>
<classifier>www</classifier>
</artifactItem>
<artifactItem>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-ui-common</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>www</classifier>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<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">
<path id="class.path">
<fileset dir="target/dependency">
<include name="**/*.jar" />
</fileset>
</path>
<copy todir="target/classes" overwrite="false">
<fileset dir="target/dependency" />
</copy>
<echo message="Running optimize." />
<property name="requirejs.dir" value="${basedir}/src/main/optimization" />
<java classname="org.mozilla.javascript.tools.shell.Main" failonerror="true">
<classpath refid="class.path" />
<arg value="${requirejs.dir}/r.js" />
<arg value="-o" />
<arg value="${requirejs.dir}/app.build.js" />
</java>
<concat destfile="target/minified/main_with_license.js">
<fileset file="src/main/optimization/license" />
<fileset file="target/minified/main.js" />
</concat>
<move file="target/minified/main_with_license.js" tofile="target/minified/main.js" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/zip.xml</descriptor>
</descriptors>
<finalName>www</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>package</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<Import-Package>*</Import-Package>
<Include-Resource>
public=target/www
</Include-Resource>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>