pom.xml revision 7ece9ef5fc2733885e1f88addaf626fc69dca33a
f4190634f6483f387a38ff3496d1fa4c13ef28beslive<?xml version="1.0" encoding="UTF-8"?>
530eba85dbd41b8a0fa5255d3648d1440199a661slive<!--
e942c741056732f50da2074b36fe59805d370650slive ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5f5d1b4cc970b7f06ff8ef6526128e9a27303d88nd ~
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ Copyright (c) 2011-2013 ForgeRock AS. All Rights Reserved
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding ~ The contents of this file are subject to the terms
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding ~ of the Common Development and Distribution License
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding ~ (the License). You may not use this file except in
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding ~ compliance with the License.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding ~
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding ~ You can obtain a copy of the License at
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ http://forgerock.org/license/CDDLv1.0.html
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ See the License for the specific language governing
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ permission and limitations under the License.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ When distributing Covered Code, include this CDDL
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ Header Notice in each file and include the License file
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ at http://forgerock.org/license/CDDLv1.0.html
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ If applicable, add the following below the CDDL Header,
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ with the fields enclosed by brackets [] replaced by
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd ~ your own identifying information:
7db9f691a00ead175b03335457ca296a33ddf31bnd ~ "Portions Copyrighted [year] [name of copyright owner]"
f4190634f6483f387a38ff3496d1fa4c13ef28beslive -->
f4190634f6483f387a38ff3496d1fa4c13ef28beslive<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <modelVersion>4.0.0</modelVersion>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <parent>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <groupId>org.forgerock.openam</groupId>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <artifactId>openam</artifactId>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <version>11.0.0-RC3</version>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener </parent>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener <artifactId>openam-ui-ria</artifactId>
860b4efe27e7c1c9a2bf5c872b29c90f76849b51jim <name>OpenAM RIA Web UI</name>
860b4efe27e7c1c9a2bf5c872b29c90f76849b51jim <packaging>pom</packaging>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <properties>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener </properties>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <dependencies>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <dependency>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <groupId>org.forgerock.commons.ui</groupId>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <artifactId>forgerock-ui-user</artifactId>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <type>zip</type>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <classifier>www</classifier>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </dependency>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <dependency>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <groupId>org.apache.servicemix.bundles</groupId>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <artifactId>org.apache.servicemix.bundles.rhino</artifactId>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener <version>1.7R2_3</version>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener </dependency>
924d679ffa60ea1483a00b4e1fcd827f1f9cfe3fhumbedooh </dependencies>
860b4efe27e7c1c9a2bf5c872b29c90f76849b51jim
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener <build>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <resources>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <resource>
69cdc59729e1a733aafee3ef613eadfb8e437c11humbedooh <directory>${basedir}/src/main/js</directory>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </resource>
69cdc59729e1a733aafee3ef613eadfb8e437c11humbedooh <resource>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <directory>${basedir}/src/main/resources</directory>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive </resource>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive </resources>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <testResources>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <testResource>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <directory>${basedir}/src/test/js</directory>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive </testResource>
3e3df020eaed29e80136e360f0a0cc3d761f7491covener <testResource>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <directory>${basedir}/src/test/resources</directory>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </testResource>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive </testResources>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <plugins>
860b4efe27e7c1c9a2bf5c872b29c90f76849b51jim <plugin>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener <groupId>org.codehaus.mojo</groupId>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <artifactId>jslint-maven-plugin</artifactId>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <configuration>
69cdc59729e1a733aafee3ef613eadfb8e437c11humbedooh <disallowInsecureCharsInRegExp>false</disallowInsecureCharsInRegExp>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <assumeConsoleAlertEtc>true</assumeConsoleAlertEtc>
69cdc59729e1a733aafee3ef613eadfb8e437c11humbedooh <excludes>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <exclude>**/libs/*.js</exclude>
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coar <exclude>**/*Test.js</exclude>
3e3df020eaed29e80136e360f0a0cc3d761f7491covener </excludes>
3e3df020eaed29e80136e360f0a0cc3d761f7491covener </configuration>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener <executions>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener <execution>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener <phase>package</phase>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener <goals>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener <goal>jslint</goal>
860b4efe27e7c1c9a2bf5c872b29c90f76849b51jim </goals>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener </execution>
b95989d80a4320b310d5931ee4bd9d1640061d2adruggeri </executions>
c6e6ef7c81b1ac917bb7a994557908225bac491ecovener </plugin>
860b4efe27e7c1c9a2bf5c872b29c90f76849b51jim
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <plugin>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener <artifactId>maven-resources-plugin</artifactId>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <executions>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <execution>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <phase>package</phase>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <goals>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <goal>resources</goal>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </goals>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </execution>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </executions>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </plugin>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <plugin>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <groupId>org.apache.maven.plugins</groupId>
d1c7ce2d430a6c91c2eddd709396da020e5d4412covener <artifactId>maven-dependency-plugin</artifactId>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <executions>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <execution>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <id>unpack</id>
69cdc59729e1a733aafee3ef613eadfb8e437c11humbedooh <phase>package</phase>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd <goals>
69cdc59729e1a733aafee3ef613eadfb8e437c11humbedooh <goal>unpack</goal>
eaaf220dae7a60b63d5487d9e3b1644f4a1dbf23nd </goals>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <configuration>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <artifactItems>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <artifactItem>
f4190634f6483f387a38ff3496d1fa4c13ef28beslive <groupId>org.forgerock.commons.ui</groupId>
<artifactId>forgerock-ui-user</artifactId>
<version>${forgerock-ui.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 optimization</id>
<phase>package</phase>
<configuration>
<target name="optimize">
<property name="requirejs.dir" value="${basedir}/src/main/optimization" />
<property name="classes.dir" value="${basedir}/target/classes" />
<property name="dependency.dir" value="${basedir}/target/dependency" />
<property name="xui.dir" value="${basedir}/target/xui" />
<delete dir="${classes.dir}/qunit" />
<delete dir="${dependency.dir}/qunit" />
<copy todir="${xui.dir}">
<fileset dir="${dependency.dir}" includes="**/*" />
</copy>
<copy todir="${xui.dir}" overwrite="true">
<fileset dir="${classes.dir}" includes="**/*" />
</copy>
<java classname="org.mozilla.javascript.tools.shell.Main"
failonerror="true">
<classpath refid="maven.compile.classpath" />
<arg value="${requirejs.dir}/r.js" />
<arg value="-o" />
<arg value="${requirejs.dir}/app.build.js" />
</java>
<concat destfile="${xui.dir}_minified/main_with_licenses.js">
<fileset file="${requirejs.dir}/license" />
<fileset file="${xui.dir}_minified/main.js" />
</concat>
<move file="${xui.dir}_minified/main_with_licenses.js"
tofile="${xui.dir}_minified/main.js" />
<delete dir="${xui.dir}" />
<move file="${xui.dir}_minified"
tofile="${xui.dir}" />
</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>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>