example-ui
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.openidentityplatform.commons.selfservice</groupId>
<artifactId>example-ui</artifactId>
<version>3.1.2</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
~
~ Copyright (c) 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
~ http://forgerock.org/license/CDDLv1.0.html
~ 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
~ at http://forgerock.org/license/CDDLv1.0.html
~ 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>selfservice</artifactId>
<groupId>org.openidentityplatform.commons</groupId>
<version>3.1.2</version>
</parent>
<groupId>org.openidentityplatform.commons.selfservice</groupId>
<artifactId>example-ui</artifactId>
<name>${project.groupId}.${project.artifactId}</name>
<packaging>pom</packaging>
<build><finalName>${project.groupId}.${project.artifactId}</finalName>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>${basedir}/src/main/js</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jslint-maven-plugin</artifactId>
<version>1.0.1</version>
<configuration>
<excludes>
<exclude>**/libs/*.js</exclude>
<exclude>**/*Test.js</exclude>
</excludes>
</configuration>
<executions>
<execution>
<phase>validate</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.openidentityplatform.commons.ui</groupId>
<artifactId>user</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>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>prepare-working-dir</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>www</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/dir.xml</descriptor>
</descriptors>
</configuration>
</execution>
<execution>
<id>build-final-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/zip.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-structure-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/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">
<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/theme.less" />
<arg value="${project.build.directory}/www/css/theme.css" />
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openidentityplatform.commons</groupId>
<artifactId>maven-external-dependency-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<stagingDirectory>
${project.build.directory}/dependencies/
</stagingDirectory>
<createChecksum>false</createChecksum>
<skipChecksumVerification>true</skipChecksumVerification>
<force>false</force>
<artifactItems>
<artifactItem>
<groupId>org.openidentityplatform.commons.ui.libs</groupId>
<artifactId>less</artifactId>
<version>1.5.1</version>
<classifier>rhino</classifier>
<packaging>js</packaging>
<downloadUrl>
https://raw.githubusercontent.com/{artifactId}/{artifactId}.{packaging}/v1.7.5/dist/{artifactId}-{classifier}-1.5.1.{packaging}
</downloadUrl>
</artifactItem>
</artifactItems>
</configuration>
<executions>
<execution>
<id>clean-external-dependencies</id>
<phase>clean</phase>
<goals>
<goal>clean-external</goal>
</goals>
</execution>
<execution>
<id>resolve-install-external-dependencies</id>
<phase>process-resources</phase>
<goals>
<goal>resolve-external</goal>
<goal>install-external</goal>
</goals>
</execution>
<!-- <execution> -->
<!-- <id>deploy-external-dependencies</id> -->
<!-- <phase>deploy</phase> -->
<!-- <goals> -->
<!-- <goal>deploy-external</goal> -->
<!-- </goals> -->
<!-- </execution> -->
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.openidentityplatform.commons.ui</groupId>
<artifactId>user</artifactId>
<version>${project.version}</version>
<type>zip</type>
<classifier>www</classifier>
</dependency>
<dependency>
<groupId>org.openidentityplatform.commons.ui.libs</groupId>
<artifactId>less</artifactId>
<version>1.5.1</version>
<classifier>rhino</classifier>
<type>js</type>
</dependency>
<dependency>
<groupId>de.matrixweb.osgi.wrapped</groupId>
<artifactId>osgi-wrapped-rhino</artifactId>
<version>1.7R4</version>
<exclusions>
<exclusion>
<groupId>org.mozilla</groupId>
<artifactId>rhino</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>