pom.xml revision 2d7019e19039fd083850f76e54b6b26a7b06a8f2
<?xml version="1.0" encoding="UTF-8"?><!--
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 legal/CDDLv1.0.txt. See the License for the
specific language governing permission and limitations under the License.
When distributing Covered Software, include this CDDL Header Notice in each file and include
the License file at legal/CDDLv1.0.txt. 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]".
Copyright © 2011 ForgeRock AS. All rights reserved.
-->
<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-project</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>
<artifactId>openidm-ui-ria</artifactId>
<name>OpenIDM RIA Web UI</name>
<packaging>js</packaging>
<properties>
</properties>
<dependencies>
<dependency>
<artifactId>jquery-amd</artifactId>
<type>js</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<artifactId>jstestrunner-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
</resource>
<resource>
</resource>
</resources>
<testResources>
<testResource>
</testResource>
<testResource>
</testResource>
</testResources>
<extensions>
<extension>
<artifactId>javascript-maven-plugin</artifactId>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>jslint-maven-plugin</artifactId>
<configuration>
<excludes>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>Optimized UI</id>
<activation>
<property>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-installed</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>rhino</includeGroupIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<configuration>
<target name="optimize">
<path id="class.path">
<include name="**/*.jar" />
</fileset>
</path>
<echo message="Running optimize." />
failonerror="true">
<classpath refid="class.path" />
<arg value="${requirejs.dir}/r.js" />
<arg value="-o" />
<arg value="${requirejs.dir}/app.build.js" />
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
</descriptors>
</configuration>
<executions>
<execution>
<id>zip-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>Non optimized UI</id>
<activation>
<property>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
</descriptors>
</configuration>
<executions>
<execution>
<id>zip-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>Without qunit tests</id>
<activation>
<property>
</property>
</activation>
<properties>
<skipTests>true</skipTests>
</properties>
</profile>
<profile>
<id>With qunit tests</id>
<activation>
<property>
</property>
</activation>
<properties>
<skipTests>false</skipTests>
</properties>
</profile>
</profiles>
<description>Web UI realized as a rich internet application created primaraly using JS. This module contains resources like java scripts, html files, css styles. Outcome of this module build is a zip file containing resouces deployable on any web server.
Build remarks:
If -Dopenidm.ui.optimize parameter is used during the build, target resources will be optimized. Use this during the release build.</description>
</project>