pom.xml revision 27af262c3da03fc33f6f12f0663f0441b92b479f
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
~
~ Copyright © 2011 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]"
~
~ $Id$
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>openidm-project</artifactId>
<groupId>org.forgerock.openidm</groupId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-webapp</artifactId>
<packaging>war</packaging>
<version>2.0.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>servlet-api</artifactId>
<version>2.5</version>
<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-repo-orientdb</artifactId>
<version>${openidm.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-repo-jdbc</artifactId>
<version>${openidm.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-provisioner-openicf</artifactId>
<version>${openidm.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-restlet</artifactId>
<version>${openidm.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-scheduler</artifactId>
<version>${openidm.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-audit</artifactId>
<version>${openidm.version}</version>
</dependency>
<dependency>
<groupId>org.forgerock.openidm</groupId>
<artifactId>openidm-ui</artifactId>
<version>${openidm.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>
<!-- Pax Web 1.0.3 war and whiteboard - ->
<dependency>
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-api</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-spi</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-extender-war</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-extender-whiteboard</artifactId>
<version>1.0.3</version>
</dependency-->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>0.9.29</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.6.1</version>
</dependency>
<!-- OpenICF Logger -->
<dependency>
<groupId>org.forgerock.openicf.framework</groupId>
<artifactId>icfl-over-slf4j</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- OpenICF Connectors -->
<dependency>
<groupId>org.forgerock.openicf.connectors.file</groupId>
<artifactId>xml</artifactId>
<version>1.1.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Sample Dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.0.5.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-system,
</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,
groovy-all,
icfl-over-slf4j,
jackson-core-asl,
jackson-mapper-asl,
json-crypto,
json-fluent,
json-schema,
openidm-audit,
openidm-crypto,
openidm-core,
openidm-provisioner-openicf,
openidm-provisioner,
openidm-repo,
openidm-restlet,
openidm-scheduler,
openidm-ui,
openidm-util,
org.apache.felix.configadmin,
org.apache.felix.fileinstall,
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
<!--,ops4j-base-util-collections,
ops4j-base-lang,
ops4j-base-util-xml,
pax-swissbox-core,
pax-swissbox-extender,
pax-swissbox-lifecycle,
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>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.26</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.17</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>