pom.xml revision 2f712fa56ff4330408f24288028c6acb0de3c201
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich<?xml version="1.0" encoding="UTF-8"?>
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich<!--
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~ Copyright (c) 2011-2014 ForgeRock AS. All Rights Reserved
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~ The contents of this file are subject to the terms
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~ of the Common Development and Distribution License
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~ (the License). You may not use this file except in
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~ compliance with the License.
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz ~
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ You can obtain a copy of the License at
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ http://forgerock.org/license/CDDLv1.0.html
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich ~ See the License for the specific language governing
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ permission and limitations under the License.
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ When distributing Covered Code, include this CDDL
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ Header Notice in each file and include the License file
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ at http://forgerock.org/license/CDDLv1.0.html
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ If applicable, add the following below the CDDL Header,
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ with the fields enclosed by brackets [] replaced by
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ your own identifying information:
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich ~ "Portions Copyrighted [year] [name of copyright owner]"
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich -->
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich<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">
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <modelVersion>4.0.0</modelVersion>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <parent>
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich <artifactId>openidm-ui</artifactId>
bc84d207c5ccce005513f71b15635731fa426bf1Dominik Dietrich <groupId>org.forgerock.openidm</groupId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <version>3.1.0-RC1-SNAPSHOT</version>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich </parent>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <artifactId>openidm-ui-admin</artifactId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <name>OpenIDM UI Admin</name>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <packaging>bundle</packaging>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <properties>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich </properties>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <dependencies>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <dependency>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <groupId>org.forgerock.commons.ui</groupId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <artifactId>forgerock-ui-commons</artifactId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <version>${forgerock-ui.version}</version>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <type>zip</type>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <classifier>www</classifier>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich </dependency>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <dependency>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <groupId>org.forgerock.openidm</groupId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <artifactId>openidm-ui-common</artifactId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <version>${project.version}</version>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <type>zip</type>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <classifier>www</classifier>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich </dependency>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich
f14bf11310b51516794b2ad792907c45ebeb73d7Ewaryst Schulz <dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.apache.servicemix.bundles</groupId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <artifactId>org.apache.servicemix.bundles.rhino</artifactId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich </dependency>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <dependency>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <groupId>org.forgerock.commons.ui.libs</groupId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <artifactId>jquery-ui</artifactId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <version>1.11.1</version>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <classifier>min</classifier>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <type>js</type>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich </dependency>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <dependency>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <groupId>org.forgerock.commons.ui.libs</groupId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <artifactId>jquery.jqGrid</artifactId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <version>4.5.4</version>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <classifier>min</classifier>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <type>js</type>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </dependency>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <dependency>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <groupId>org.forgerock.commons.ui.libs</groupId>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <artifactId>jsoneditor</artifactId>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <version>0.7.9</version>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <classifier>min</classifier>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <type>js</type>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </dependency>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <dependency>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <groupId>org.forgerock.commons.ui.libs</groupId>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <artifactId>ldapjs-filter</artifactId>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <version>2253</version>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <classifier>min</classifier>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <type>js</type>
f14bf11310b51516794b2ad792907c45ebeb73d7Ewaryst Schulz </dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich <dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.forgerock.commons.ui.libs</groupId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactId>jquery-cron</artifactId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <version>r2427</version>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <type>js</type>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.forgerock.commons.ui.libs</groupId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactId>jquery-gentleSelect</artifactId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <version>0.1.3.1</version>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <classifier>min</classifier>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <type>js</type>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.forgerock.commons.ui.libs</groupId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactId>CodeMirror</artifactId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <version>4.5.0</version>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <type>zip</type>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </dependency>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </dependencies>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <profiles>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <profile>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <!-- the profile to build the non-optimized UI -->
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <id>Non optimized UI</id>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <activation>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <property>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <name>!openidm.ui.optimize</name>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </property>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </activation>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <build>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <resources>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <resource>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <directory>${basedir}/src/main/js</directory>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </resource>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <resource>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <directory>${basedir}/src/main/resources</directory>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </resource>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </resources>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <plugins>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <plugin>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.codehaus.mojo</groupId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactId>jslint-maven-plugin</artifactId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <configuration>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <disallowInsecureCharsInRegExp>false</disallowInsecureCharsInRegExp>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <excludes>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/libs/ldapfilters/*.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/libs/*.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/libs/codemirror/lib/*.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/libs/codemirror/mode/javascript/*.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/libs/codemirror/mode/groovy/*.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/libs/codemirror/addon/display/*.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/libs/i18n/*.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <exclude>**/*Test.js</exclude>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </excludes>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </configuration>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <executions>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <execution>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <phase>prepare-package</phase>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <goals>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <goal>jslint</goal>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </goals>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </execution>
f54cbc3b567482a53e417faff9cd2583bfdc47dfDominik Dietrich </executions>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </plugin>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <plugin>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <artifactId>maven-resources-plugin</artifactId>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <executions>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <execution>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <phase>prepare-package</phase>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <goals>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <goal>resources</goal>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </goals>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </execution>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </executions>
0f541fef46255a09d1143a9cbf3e2dbafb610923Ewaryst Schulz </plugin>
0f541fef46255a09d1143a9cbf3e2dbafb610923Ewaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <plugin>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.apache.maven.plugins</groupId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactId>maven-dependency-plugin</artifactId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <executions>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <execution>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <id>unpack-forgerock-ui</id>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <phase>prepare-package</phase>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <goals>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <goal>unpack</goal>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz </goals>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <configuration>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactItems>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactItem>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.forgerock.commons.ui</groupId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactId>forgerock-ui-commons</artifactId>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <version>${forgerock-ui.version}</version>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <type>zip</type>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <classifier>www</classifier>
0f541fef46255a09d1143a9cbf3e2dbafb610923Ewaryst Schulz </artifactItem>
0f541fef46255a09d1143a9cbf3e2dbafb610923Ewaryst Schulz
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <artifactItem>
6a5011fab59ec9893a2b339268797662b22ae97bEwaryst Schulz <groupId>org.forgerock.openidm</groupId>
f14bf11310b51516794b2ad792907c45ebeb73d7Ewaryst Schulz <artifactId>openidm-ui-common</artifactId>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <version>${project.version}</version>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <type>zip</type>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <classifier>www</classifier>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </artifactItem>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </artifactItems>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </configuration>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz </execution>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <execution>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <id>unpack-codemirror</id>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <phase>prepare-package</phase>
d3ea4ab5527bc4bd7381d39ecbc4af2199f54341Ewaryst Schulz <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>