pom.xml revision 73306ac32669a5b530766e3b65c8d2007fc630c9
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
~
~ Copyright (c) 2011-2015 ForgeRock AS. All Rights Reserved
~
~ The contents of this file are subject to the terms
~ of the Common Development and Distribution License
~ (the License). You may not use this file except in
~ compliance with the License.
~
~ You can obtain a copy of the License at
~ See the License for the specific language governing
~ permission and limitations under the License.
~
~ When distributing Covered Code, include this CDDL
~ Header Notice in each file and include the License file
~ If applicable, add the following below the CDDL Header,
~ with the fields enclosed by brackets [] replaced by
~ your own identifying information:
~ "Portions Copyrighted [year] [name of copyright owner]"
-->
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>openidm-ui</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>openidm-ui-admin</artifactId>
<name>OpenIDM UI Admin</name>
<packaging>bundle</packaging>
<properties>
</properties>
<dependencies>
<dependency>
<artifactId>forgerock-ui-commons</artifactId>
<type>zip</type>
<classifier>www</classifier>
</dependency>
<dependency>
<artifactId>openidm-ui-common</artifactId>
<type>zip</type>
<classifier>www</classifier>
</dependency>
<dependency>
<version>0.3.5</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<version>0.3.5</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<version>0.3.5</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>backbone-relational</artifactId>
<version>0.9.0</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>jquery-nestingSortable</artifactId>
<version>0.9.12</version>
<type>js</type>
</dependency>
<dependency>
<artifactId>jsoneditor</artifactId>
<version>0.7.9</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>ldapjs-filter</artifactId>
<version>2253</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>jquery-cron</artifactId>
<version>r2427</version>
<type>js</type>
</dependency>
<dependency>
<artifactId>jquery-gentleSelect</artifactId>
<version>0.1.3.1</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>CodeMirror</artifactId>
<version>4.10</version>
<type>zip</type>
</dependency>
<dependency>
<artifactId>bootstrap-tabdrop</artifactId>
<version>1.0</version>
<type>js</type>
</dependency>
<dependency>
<artifactId>d3</artifactId>
<version>3.5.5</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>dimple</artifactId>
<version>2.1.2</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>fontawesome-iconpicker</artifactId>
<version>1.0.0</version>
<classifier>min</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>fontawesome-iconpicker</artifactId>
<version>1.0.0</version>
<classifier>min</classifier>
<type>css</type>
</dependency>
<dependency>
</dependency>
<dependency>
<artifactId>less</artifactId>
<version>1.5.1</version>
<classifier>rhino</classifier>
<type>js</type>
</dependency>
<dependency>
<artifactId>r</artifactId>
<version>2.1.10</version>
<type>js</type>
</dependency>
</dependencies>
<build>
<resources>
<resource>
</resource>
<resource>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>jslint-maven-plugin</artifactId>
<configuration>
<disallowInsecureCharsInRegExp>false</disallowInsecureCharsInRegExp>
<excludes>
<exclude>**/libs/*.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>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<artifactId>forgerock-ui-commons</artifactId>
<type>zip</type>
<classifier>www</classifier>
</artifactItem>
<artifactItem>
<artifactId>openidm-ui-common</artifactId>
<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>
<artifactItems>
<artifactItem>
<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>
<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>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
</descriptors>
<finalName>www</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-structure-less-to-css</id>
<phase>prepare-package</phase>
<configuration>
<target name="compileLess">
<classpath refid="maven.compile.classpath" />
<arg value="${project.build.directory}/less/less-1.5.1-rhino.js" />
<arg value="${project.build.directory}/www/css/structure.less" />
<arg value="${project.build.directory}/www/css/structure.css" />
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>compile-theme-less-to-css</id>
<phase>prepare-package</phase>
<configuration>
<target name="compileLess">
<classpath refid="maven.compile.classpath" />
<arg value="${project.build.directory}/less/less-1.5.1-rhino.js" />
<arg value="${project.build.directory}/www/css/theme.less" />
<arg value="${project.build.directory}/www/css/theme.css" />
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<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>
</Include-Resource>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>commercial-build</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<configuration>
<target name="optimizeJS">
<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>
<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/structure.css" />
<arg value="out=${project.build.directory}/www/css/structure_min.css" />
<arg value="optimizeCss=standard" />
</java>
<move file="${project.build.directory}/www/css/structure_min.css" tofile="${project.build.directory}/www/css/structure.css" />
<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/theme.css" />
<arg value="out=${project.build.directory}/www/css/theme_min.css" />
<arg value="optimizeCss=standard" />
</java>
<move file="${project.build.directory}/www/css/theme_min.css" tofile="${project.build.directory}/www/css/theme.css" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>