pom.xml revision 5d968e809e05272e10f85f43b2e4d230af912fec
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder<?xml version="1.0" encoding="UTF-8"?>
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder<!--
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ Copyright (c) 2011-2014 ForgeRock AS. All Rights Reserved
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ The contents of this file are subject to the terms
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder ~ of the Common Development and Distribution License
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder ~ (the License). You may not use this file except in
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder ~ compliance with the License.
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder ~
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ You can obtain a copy of the License at
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ http://forgerock.org/license/CDDLv1.0.html
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ See the License for the specific language governing
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ permission and limitations under the License.
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ When distributing Covered Code, include this CDDL
6b7d53eb1a93b9a9d7e3ce48964128fcd142fe53Christian Maeder ~ Header Notice in each file and include the License file
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder ~ at http://forgerock.org/license/CDDLv1.0.html
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder ~ If applicable, add the following below the CDDL Header,
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ with the fields enclosed by brackets [] replaced by
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ your own identifying information:
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder ~ "Portions Copyrighted [year] [name of copyright owner]"
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder -->
2083784cdbe448a3d8f94c7a0a0a011bbabf3fd0Christian Maeder<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">
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <modelVersion>4.0.0</modelVersion>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <parent>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <artifactId>openidm-ui</artifactId>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <groupId>org.forgerock.openidm</groupId>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <version>4.0.0-SNAPSHOT</version>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder </parent>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <artifactId>openidm-ui-enduser</artifactId>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <name>OpenIDM UI End-user</name>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <packaging>bundle</packaging>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <properties>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder </properties>
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder
4ea69d9a971bbb8b4082bcd60350fdabd5411c23Christian Maeder <dependencies>
5334aa8fe0b0d1eb8a1cad40b741aa07172773c9Christian Maeder <dependency>
5334aa8fe0b0d1eb8a1cad40b741aa07172773c9Christian Maeder <groupId>org.forgerock.commons.ui</groupId>
5334aa8fe0b0d1eb8a1cad40b741aa07172773c9Christian Maeder <artifactId>forgerock-ui-user</artifactId>
5334aa8fe0b0d1eb8a1cad40b741aa07172773c9Christian Maeder <version>${forgerock-ui.version}</version>
5334aa8fe0b0d1eb8a1cad40b741aa07172773c9Christian Maeder <type>zip</type>
5334aa8fe0b0d1eb8a1cad40b741aa07172773c9Christian Maeder <classifier>www</classifier>
5334aa8fe0b0d1eb8a1cad40b741aa07172773c9Christian Maeder </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.openidm</groupId>
<artifactId>openidm-ui-common</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>www</classifier>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>contentflow</artifactId>
<version>1.0.2</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>d3</artifactId>
<version>3.5.5</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>org.forgerock.commons.ui.libs</groupId>
<artifactId>dimple</artifactId>
<version>2.1.2</version>
<classifier>min</classifier>
<type>js</type>
</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.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.rhino</artifactId>
</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>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<configuration>
<disallowInsecureCharsInRegExp>false</disallowInsecureCharsInRegExp>
<excludes>
<exclude>**/libs/*.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</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.openidm</groupId>
<artifactId>openidm-ui-common</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>www</classifier>
</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>
<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.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>
<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>
<profiles>
<profile>
<id>commercial-build</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="optimizeJS">
<property name="requirejs.dir" value="${project.build.directory}/optimization" />
<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="${basedir}/src/main/optimization/app.build.js" />
</java>
<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.4-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>