pom.xml revision c54f5c9f018cfaf6792ae351d3f0be15efdd175e
678N/A<?xml version="1.0" encoding="UTF-8"?>
2418N/A<!--
678N/A ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
678N/A ~
678N/A ~ Copyright (c) 2011-2014 ForgeRock AS. All Rights Reserved
678N/A ~
678N/A ~ The contents of this file are subject to the terms
678N/A ~ of the Common Development and Distribution License
678N/A ~ (the License). You may not use this file except in
678N/A ~ compliance with the License.
678N/A ~
678N/A ~ You can obtain a copy of the License at
678N/A ~ http://forgerock.org/license/CDDLv1.0.html
678N/A ~ See the License for the specific language governing
678N/A ~ permission and limitations under the License.
678N/A ~
678N/A ~ When distributing Covered Code, include this CDDL
678N/A ~ Header Notice in each file and include the License file
2362N/A ~ at http://forgerock.org/license/CDDLv1.0.html
2362N/A ~ If applicable, add the following below the CDDL Header,
2362N/A ~ with the fields enclosed by brackets [] replaced by
678N/A ~ your own identifying information:
678N/A ~ "Portions Copyrighted [year] [name of copyright owner]"
678N/A -->
678N/A<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
678N/A xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
678N/A <modelVersion>4.0.0</modelVersion>
678N/A <parent>
678N/A <artifactId>openidm-ui</artifactId>
678N/A <groupId>org.forgerock.openidm</groupId>
678N/A <version>3.1.0-SNAPSHOT</version>
678N/A </parent>
1300N/A
1300N/A <artifactId>openidm-ui-enduser</artifactId>
678N/A <name>OpenIDM UI End-user</name>
678N/A <packaging>bundle</packaging>
704N/A
678N/A <properties>
678N/A <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
678N/A </properties>
678N/A
678N/A <dependencies>
678N/A <dependency>
678N/A <groupId>org.forgerock.commons.ui</groupId>
678N/A <artifactId>forgerock-ui-user</artifactId>
678N/A <version>${forgerock-ui.version}</version>
678N/A <type>zip</type>
678N/A <classifier>www</classifier>
678N/A </dependency>
678N/A
678N/A <dependency>
678N/A <groupId>org.forgerock.openidm</groupId>
678N/A <artifactId>openidm-ui-common</artifactId>
678N/A <version>${openidm.version}</version>
678N/A <type>zip</type>
678N/A <classifier>www</classifier>
678N/A </dependency>
678N/A
678N/A <dependency>
678N/A <groupId>org.apache.servicemix.bundles</groupId>
678N/A <artifactId>org.apache.servicemix.bundles.rhino</artifactId>
678N/A </dependency>
678N/A </dependencies>
678N/A
678N/A <profiles>
1941N/A <profile>
1941N/A <!-- the profile to build the non-optimized UI -->
1941N/A <id>Non optimized UI</id>
1941N/A <activation>
1941N/A <property>
1941N/A <name>!openidm.ui.optimize</name>
1941N/A </property>
1941N/A </activation>
678N/A
678N/A <build>
678N/A <resources>
678N/A <resource>
678N/A <directory>${basedir}/src/main/js</directory>
678N/A </resource>
678N/A <resource>
678N/A <directory>${basedir}/src/main/resources</directory>
678N/A </resource>
678N/A </resources>
678N/A
678N/A <plugins>
678N/A <plugin>
678N/A <groupId>org.codehaus.mojo</groupId>
678N/A <artifactId>jslint-maven-plugin</artifactId>
678N/A <configuration>
678N/A <disallowInsecureCharsInRegExp>false</disallowInsecureCharsInRegExp>
678N/A <excludes>
678N/A <exclude>**/libs/*.js</exclude>
678N/A <exclude>**/*Test.js</exclude>
678N/A </excludes>
678N/A </configuration>
678N/A <executions>
678N/A <execution>
678N/A <phase>prepare-package</phase>
678N/A <goals>
678N/A <goal>jslint</goal>
678N/A </goals>
678N/A </execution>
678N/A </executions>
678N/A </plugin>
678N/A
678N/A <plugin>
678N/A <artifactId>maven-resources-plugin</artifactId>
678N/A <executions>
678N/A <execution>
678N/A <phase>prepare-package</phase>
678N/A <goals>
678N/A <goal>resources</goal>
678N/A </goals>
678N/A </execution>
678N/A </executions>
678N/A </plugin>
678N/A
678N/A <plugin>
678N/A <groupId>org.apache.maven.plugins</groupId>
678N/A <artifactId>maven-dependency-plugin</artifactId>
678N/A <executions>
678N/A <execution>
678N/A <id>unpack</id>
678N/A <phase>prepare-package</phase>
678N/A <goals>
678N/A <goal>unpack</goal>
678N/A </goals>
678N/A <configuration>
678N/A <artifactItems>
678N/A <artifactItem>
3054N/A <groupId>org.forgerock.commons.ui</groupId>
3054N/A <artifactId>forgerock-ui-user</artifactId>
3054N/A <version>${forgerock-ui.version}</version>
3054N/A <type>zip</type>
3054N/A <classifier>www</classifier>
3054N/A </artifactItem>
3054N/A
678N/A <artifactItem>
678N/A <groupId>org.forgerock.openidm</groupId>
1300N/A <artifactId>openidm-ui-common</artifactId>
1300N/A <version>${openidm.version}</version>
1300N/A <type>zip</type>
1300N/A <classifier>www</classifier>
678N/A </artifactItem>
678N/A
678N/A </artifactItems>
678N/A </configuration>
678N/A </execution>
2034N/A </executions>
2034N/A </plugin>
2034N/A
2034N/A <plugin>
678N/A <artifactId>maven-assembly-plugin</artifactId>
678N/A <configuration>
678N/A <descriptors>
678N/A <descriptor>src/main/assembly/zip.xml</descriptor>
678N/A </descriptors>
678N/A <finalName>www</finalName>
678N/A <appendAssemblyId>false</appendAssemblyId>
678N/A </configuration>
2461N/A <executions>
2489N/A <execution>
2461N/A <phase>prepare-package</phase>
2461N/A <goals>
2489N/A <goal>single</goal>
3054N/A </goals>
2489N/A </execution>
3054N/A </executions>
3054N/A </plugin>
3054N/A
3054N/A <plugin>
3054N/A <groupId>org.apache.felix</groupId>
678N/A <artifactId>maven-bundle-plugin</artifactId>
678N/A <extensions>true</extensions>
1300N/A <executions>
1300N/A <execution>
1300N/A <id>bundle-manifest</id>
1300N/A <phase>package</phase>
678N/A <goals>
678N/A <goal>manifest</goal>
678N/A </goals>
678N/A </execution>
1941N/A </executions>
678N/A <configuration>
678N/A <instructions>
1300N/A <Import-Package>*</Import-Package>
1300N/A <Include-Resource>
1300N/A public=target/www
1300N/A </Include-Resource>
678N/A </instructions>
678N/A </configuration>
678N/A </plugin>
678N/A </plugins>
678N/A </build>
678N/A </profile>
678N/A
678N/A <profile>
678N/A <!-- the profile to build the optimized UI -->
1300N/A <id>Optimized UI</id>
678N/A <activation>
678N/A <property>
3054N/A <name>openidm.ui.optimize</name>
3054N/A </property>
3054N/A </activation>
3054N/A
3054N/A <build>
3054N/A <resources>
678N/A <resource>
678N/A <directory>${basedir}/src/main/js</directory>
678N/A </resource>
678N/A <resource>
678N/A <directory>${basedir}/src/main/resources</directory>
678N/A </resource>
678N/A </resources>
678N/A
678N/A <plugins>
1300N/A <plugin>
1300N/A <groupId>org.codehaus.mojo</groupId>
678N/A <artifactId>jslint-maven-plugin</artifactId>
678N/A <configuration>
678N/A <excludes>
678N/A <exclude>**/libs/*.js</exclude>
678N/A <exclude>**/*Test.js</exclude>
678N/A </excludes>
678N/A </configuration>
678N/A <executions>
678N/A <execution>
678N/A <phase>prepare-package</phase>
678N/A <goals>
678N/A <goal>jslint</goal>
1266N/A </goals>
1266N/A </execution>
678N/A </executions>
678N/A </plugin>
678N/A
678N/A <plugin>
678N/A <artifactId>maven-resources-plugin</artifactId>
1266N/A <executions>
678N/A <execution>
678N/A <phase>prepare-package</phase>
678N/A <goals>
678N/A <goal>resources</goal>
678N/A </goals>
678N/A </execution>
678N/A </executions>
678N/A </plugin>
678N/A
678N/A <plugin>
678N/A <groupId>org.apache.maven.plugins</groupId>
678N/A <artifactId>maven-dependency-plugin</artifactId>
678N/A <executions>
678N/A <execution>
1266N/A <id>copy-and-unpack</id>
1266N/A <phase>prepare-package</phase>
678N/A <goals>
1266N/A <goal>copy-dependencies</goal>
1266N/A <goal>unpack</goal>
1300N/A </goals>
1266N/A <configuration>
1266N/A <includeGroupIds>org.apache.servicemix.bundles</includeGroupIds>
1266N/A <artifactItems>
2996N/A <artifactItem>
678N/A <groupId>org.forgerock.commons.ui</groupId>
678N/A <artifactId>forgerock-ui-user</artifactId>
678N/A <version>${forgerock-ui.version}</version>
678N/A <type>zip</type>
678N/A <classifier>www</classifier>
678N/A </artifactItem>
1266N/A <artifactItem>
1266N/A <groupId>org.forgerock.openidm</groupId>
1266N/A <artifactId>openidm-ui-common</artifactId>
1266N/A <version>${openidm.version}</version>
1266N/A <type>zip</type>
1266N/A <classifier>www</classifier>
1266N/A </artifactItem>
678N/A </artifactItems>
678N/A </configuration>
678N/A </execution>
678N/A </executions>
678N/A </plugin>
678N/A
1300N/A <plugin>
1300N/A <groupId>org.apache.maven.plugins</groupId>
1300N/A <artifactId>maven-antrun-plugin</artifactId>
678N/A <executions>
678N/A <execution>
678N/A <id>js/css optimization</id>
678N/A <phase>prepare-package</phase>
678N/A
678N/A <configuration>
678N/A <target name="optimize">
678N/A
678N/A <path id="class.path">
1300N/A <fileset dir="target/dependency">
678N/A <include name="**/*.jar" />
678N/A </fileset>
678N/A </path>
678N/A
678N/A <copy todir="target/classes" overwrite="false">
678N/A <fileset dir="target/dependency"/>
678N/A </copy>
678N/A <echo message="Running optimize." />
678N/A
678N/A <property name="requirejs.dir" value="${basedir}/src/main/optimization" />
678N/A
1300N/A <java classname="org.mozilla.javascript.tools.shell.Main"
1300N/A failonerror="true">
1300N/A <classpath refid="class.path" />
1300N/A <arg value="${requirejs.dir}/r.js" />
1300N/A <arg value="-o" />
1300N/A <arg value="${requirejs.dir}/app.build.js" />
1300N/A </java>
1300N/A
678N/A <concat destfile="target/minified/main_with_license.js">
678N/A <fileset file="src/main/optimization/license" />
678N/A <fileset file="target/minified/main.js" />
678N/A </concat>
678N/A
678N/A <move file="target/minified/main_with_license.js" tofile="target/minified/main.js" />
678N/A </target>
678N/A </configuration>
678N/A <goals>
678N/A <goal>run</goal>
678N/A </goals>
678N/A </execution>
678N/A </executions>
678N/A </plugin>
678N/A
678N/A <plugin>
678N/A <artifactId>maven-assembly-plugin</artifactId>
678N/A <configuration>
678N/A <descriptors>
678N/A <descriptor>src/main/assembly/zip.xml</descriptor>
678N/A </descriptors>
678N/A <finalName>www</finalName>
678N/A <appendAssemblyId>false</appendAssemblyId>
1300N/A </configuration>
678N/A <executions>
678N/A <execution>
678N/A <phase>prepare-package</phase>
678N/A <goals>
678N/A <goal>single</goal>
678N/A </goals>
678N/A </execution>
678N/A </executions>
678N/A </plugin>
678N/A
678N/A <plugin>
678N/A <groupId>org.apache.felix</groupId>
678N/A <artifactId>maven-bundle-plugin</artifactId>
678N/A <extensions>true</extensions>
678N/A <executions>
678N/A <execution>
678N/A <id>bundle-manifest</id>
678N/A <phase>package</phase>
678N/A <goals>
678N/A <goal>manifest</goal>
1300N/A </goals>
678N/A </execution>
678N/A </executions>
1300N/A <configuration>
678N/A <instructions>
678N/A <Import-Package>*</Import-Package>
678N/A <Include-Resource>
678N/A public=target/www
678N/A </Include-Resource>
678N/A <Bundle-SymbolicName>${project.groupId}.ui.enduser</Bundle-SymbolicName>
678N/A </instructions>
678N/A </configuration>
678N/A </plugin>
678N/A </plugins>
678N/A </build>
678N/A </profile>
678N/A
678N/A </profiles>
678N/A</project>
678N/A
678N/A