pom.xml revision fa9b7593e9e156060babbf3a9b06de8d6b5da5a3
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
~
~ Copyright (c) 2011-2012 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>openidm-project</artifactId>
<groupId>org.forgerock.openidm</groupId>
<version>2.1.0-SNAPSHOT</version>
</parent>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-webapp</artifactId>
<packaging>war</packaging>
<version>2.1.0-SNAPSHOT</version>
<name>OpenIDM Webapp - (Embedded Felix)</name>
<description>Sample web application with embedded OpenIDM. It shows how to embedded the OpenIDM into any legacy web application.</description>
<properties>
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.source>1.6</maven.compiler.source>
</properties>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.compendium</artifactId>
<exclusions>
<exclusion>
<artifactId>javax.servlet</artifactId>
<groupId>org.apache.felix</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
</dependency>
<!--dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.main</artifactId>
</dependency-->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.http.proxy</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.http.bridge</artifactId>
<version>2.2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.http.whiteboard</artifactId>
<version>2.2.0</version>
</dependency>
<!-- OpenIDM Dependencies -->
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-audit</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-crypto</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-repo-orientdb</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-repo-jdbc</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-provisioner-openicf</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-restlet</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-scheduler</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-ui</artifactId>
<version>${project.version}</version>
</dependency>
<!-- Core OSGi -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.webconsole</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.shell</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.shell.tui</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.configadmin</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.log</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.fileinstall</artifactId>
<scope>provided</scope>
</dependency>
<!-- Declarative Services support -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.9</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.7.2</version>
</dependency>
<!-- OpenICF -->
<dependency>
<groupId>org.forgerock.openicf.framework</groupId>
<artifactId>icfl-over-slf4j</artifactId>
<version>1.1.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.forgerock.openicf.framework</groupId>
<artifactId>connector-framework-osgi</artifactId>
<version>1.1.1.0</version>
<scope>provided</scope>
</dependency>
<!-- OpenICF Connectors -->
<dependency>
<groupId>org.forgerock.openicf.connectors</groupId>
<artifactId>openicf-xml-connector</artifactId>
<version>1.1.0.1</version>
<scope>provided</scope>
</dependency>
<!-- Sample Dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/configuration</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<packagingIncludes>
WEB-INF/lib/org.apache.felix.framework*.jar,
WEB-INF/lib/org.apache.felix.main*.jar,
WEB-INF/lib/org.apache.felix.http.proxy*.jar,
WEB-INF/lib/org.osgi.compendium*.jar,
WEB-INF/lib/org.osgi.foundation*.jar,
WEB-INF/lib/org.osgi.core*.jar,
WEB-INF/lib/slf4j-api*.jar,
WEB-INF/lib/jcl-over-slf4j*.jar,
WEB-INF/lib/logback-core*.jar,
WEB-INF/lib/logback-classic*.jar,
WEB-INF/bundle/**/*,
WEB-INF/classes/**/*,
WEB-INF/conf/*,
WEB-INF/connectors/*,
WEB-INF/data/*,
WEB-INF/*,
*
</packagingIncludes>
<webResources>
<resource>
<directory>src/configuration</directory>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
<includes>
<include>**/*.json</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-init-bundles</id>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>
openidm-config,
openidm-repo-jdbc,
openidm-repo-orientdb,
openidm-crypto,
org.apache.felix.configadmin,
org.apache.felix.fileinstall
</includeArtifactIds>
<stripVersion>true</stripVersion>
<outputDirectory>
${project.build.directory}/${project.build.finalName}/WEB-INF/bundle/init
</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-bundles</id>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>
commons-codec,
commons-lang,
connector-framework-internal,
connector-framework-osgi,
connector-framework,
groovy-all,
icfl-over-slf4j,
jackson-core-asl,
jackson-mapper-asl,
json-crypto,
json-fluent,
json-schema,
openidm-audit,
openidm-core,
openidm-enhanced-config,
openidm-provisioner-openicf,
openidm-provisioner,
openidm-repo,
openidm-restlet,
openidm-scheduler,
openidm-system,
openidm-ui,
openidm-util,
org.apache.felix.http.bridge,
org.apache.felix.http.whiteboard,
org.apache.felix.log,
org.apache.felix.scr,
org.apache.felix.shell,
org.apache.felix.shell.tui,
org.apache.felix.webconsole,
org.apache.servicemix.bundles.quartz,
org.apache.servicemix.bundles.rhino,
org.restlet,
org.restlet.ext.jackson,
org.restlet.ext.servlet,
pax-swissbox-core,
pax-swissbox-extender,
pax-swissbox-lifecycle,
ops4j-base-lang
<!--,ops4j-base-util-collections,
ops4j-base-util-xml,
pax-swissbox-tracker,
pax-web-api,
pax-web-extender-war,
pax-web-extender-whiteboard,
pax-web-spi-->
</includeArtifactIds>
<stripVersion>true</stripVersion>
<outputDirectory>
${project.build.directory}/${project.build.finalName}/WEB-INF/bundle
</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-connectors</id>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>
org.forgerock.openicf.connectors.file
</includeGroupIds>
<outputDirectory>
${project.build.directory}/${project.build.finalName}/WEB-INF/connectors
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin -->
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.8.v20121106</version>
<configuration>
<contextPath>/</contextPath>
<scanIntervalSeconds>0</scanIntervalSeconds>
<!--userRealms>
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
<name>openidm</name>
<config>src/main/webapp/WEB-INF/conf/realm.properties</config>
</userRealm>
</userRealms-->
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.22</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<!-- Just to allow the standalone execution of the project -->
<repositories>
<repository>
<id>forgerock-staging-repository</id>
<name>ForgeRock Release Repository</name>
<url>http://maven.forgerock.org/repo/releases</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>forgerock-snapshots-repository</id>
<name>ForgeRock Snapshot Repository</name>
<url>http://maven.forgerock.org/repo/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</project>