pom.xml revision 26a6ec53bb06b3fb881e2a0cf5855c300513cad6
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<?xml version="1.0" encoding="UTF-8"?>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<!--
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ Copyright (c) 2011-2014 ForgeRock AS. All Rights Reserved
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ The contents of this file are subject to the terms
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ of the Common Development and Distribution License
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ (the License). You may not use this file except in
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ compliance with the License.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ You can obtain a copy of the License at
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ http://forgerock.org/license/CDDLv1.0.html
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ See the License for the specific language governing
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ permission and limitations under the License.
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ When distributing Covered Code, include this CDDL
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ Header Notice in each file and include the License file
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ at http://forgerock.org/license/CDDLv1.0.html
f71f7a61dec7c9089378d14493ad564a1dedf0b5neil_a_wilson ~ If applicable, add the following below the CDDL Header,
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ with the fields enclosed by brackets [] replaced by
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ your own identifying information:
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe ~ "Portions Copyrighted [year] [name of copyright owner]"
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe -->
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
f71f7a61dec7c9089378d14493ad564a1dedf0b5neil_a_wilson xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe <modelVersion>4.0.0</modelVersion>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe <parent>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe <artifactId>openidm-ui</artifactId>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe <groupId>org.forgerock.openidm</groupId>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe <version>3.1.0-SNAPSHOT</version>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe </parent>
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara <artifactId>openidm-ui-admin</artifactId>
266c5071a91fda6a5159b08ea8d45261228d03d5neil_a_wilson <name>OpenIDM UI Admin</name>
4edb61f8b0f8ce9f62d803c706612376498672b4al_xipe <packaging>bundle</packaging>
9da44d3de0a7180285a77b7e8d2426a72aca249ejvergara
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.forgerock.commons.ui</groupId>
<artifactId>forgerock-ui-commons</artifactId>
<version>${forgerock-ui.version}</version>
<type>zip</type>
<classifier>www</classifier>
</dependency>
<dependency>
<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>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/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>