<?xml version="1.0"?>
<!--
/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2012 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/
-->
<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>
        <groupId>com.adobe.granite</groupId>
        <artifactId>parent</artifactId>
        <version>86</version>
        <relativePath />
    </parent>

    <artifactId>com.adobe.granite.repository</artifactId>
    <version>1.4.80</version>
    <packaging>bundle</packaging>

    <name>Oak content repository</name>

    <scm>
        <connection>scm:git:git@git.corp.adobe.com:Granite/com.adobe.granite.repository.git</connection>
        <developerConnection>scm:git:git@git.corp.adobe.com:Granite/com.adobe.granite.repository.git</developerConnection>
        <url>https://git.corp.adobe.com/Granite/com.adobe.granite.repository/tree/master/</url>
        <tag>com.adobe.granite.repository-1.4.80</tag>
    </scm>

    <properties>
        <jackrabbit.version>2.15.6</jackrabbit.version>
        <oak.version>1.7.14-R1819253</oak.version>
        <oak.classifier />
        <granite.java.version>8</granite.java.version>
        <lucene.version>4.7.0</lucene.version>
    </properties>

    <profiles>
        <profile>
            <id>oak-classifier</id>
            <activation>
                <activeByDefault>false</activeByDefault>
                <property>
                    <name>oak.version</name>
                </property>
            </activation>
            <properties>
                <oak.classifier>oak</oak.classifier>
            </properties>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <classifier>${oak.classifier}</classifier>
                    <instructions>
                        <Import-Package>
                            <!--  Workaround -->
                            !org.apache.jackrabbit.test,

                            <!-- Force import the JCR packages -->
                            javax.jcr,
                            javax.jcr.lock,
                            javax.jcr.nodetype,
                            javax.jcr.observation,
                            javax.jcr.query,
                            javax.jcr.query.qom,
                            javax.jcr.retention,
                            javax.jcr.security,
                            javax.jcr.util,
                            javax.jcr.version,

                            <!-- Other imports -->
                            *
                        </Import-Package>
                        <Embed-Dependency>oak-store-document;scope=!test;inline=org/apache/jackrabbit/oak/plugins/document/bundlor/BundlingConfigInitializer*|org/apache/jackrabbit/oak/plugins/document/bundlor/BundledTypesRegistry*</Embed-Dependency>
                        <Export-Package>
                            com.day.crx.sling.server.jmx,
                            com.day.crx.core.cluster
                        </Export-Package>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.crxde-support-content</artifactId>
                                    <version>1.0.4</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package01-crxde.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.platform.content</artifactId>
                                    <version>0.3.0</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package02-platform.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.platform.i18n</artifactId>
                                    <version>1.0.32</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package03-i18n.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.platform.users</artifactId>
                                    <version>1.0.0</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package04-users.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.monitoring.content</artifactId>
                                    <version>1.0.10</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package05-monitoring.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.platform.clientlibs</artifactId>
                                    <version>1.0.20</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package06-clientlibs.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.platform.login</artifactId>
                                    <version>1.0.34</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package07-logic.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.platform.welcome</artifactId>
                                    <version>1.0.18</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package08-welcome.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.ui.content</artifactId>
                                    <version>0.1.12</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package09-ui.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.ui.legacy</artifactId>
                                    <version>0.1.2</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package10-ui-legacy.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.workflow.content</artifactId>
                                    <version>0.0.16</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package11-workflow.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.coralui.content</artifactId>
                                    <version>0.6.5</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package12-coralui.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.activitystreams.content</artifactId>
                                    <version>0.0.12</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package13-activitystreams.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.asset.content</artifactId>
                                    <version>1.4</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package14-asset.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.backup.content</artifactId>
                                    <version>0.0.18</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package15-backup.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.cluster.content</artifactId>
                                    <version>0.0.18</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package16-cluster.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.datavisualization.content</artifactId>
                                    <version>0.0.6</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package17-datavisualization.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.replication.content</artifactId>
                                    <version>1.0.18</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package18-replication.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.security.content</artifactId>
                                    <version>0.1.20</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package19-security.zip</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.adobe.granite</groupId>
                                    <artifactId>com.adobe.granite.taskmanagement.content</artifactId>
                                    <version>0.0.8</version>
                                    <type>zip</type>
                                    <outputDirectory>${project.build.directory}/install-test</outputDirectory>
                                    <destFileName>package20-taskmanagement.zip</destFileName>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>-Xmx1024m -XX:MaxPermSize=368m</argLine>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.compendium</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>biz.aQute</groupId>
            <artifactId>bndlib</artifactId>
            <version>1.50.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.day.crx</groupId>
            <artifactId>crx-api</artifactId>
            <version>2.5.2</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.adobe.granite</groupId>
            <artifactId>com.adobe.granite.jmx</artifactId>
            <version>0.1.6</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.discovery.api</artifactId>
            <version>1.0.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.settings</artifactId>
            <version>1.0.0</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.adobe.granite</groupId>
            <artifactId>com.adobe.granite.license</artifactId>
            <version>0.8.0</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>oak-jcr</artifactId>
            <version>${oak.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.apache.jackrabbit</groupId>
          <artifactId>oak-core</artifactId>
          <version>${oak.version}</version>
          <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>oak-segment-tar</artifactId>
            <version>${oak.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>oak-store-document</artifactId>
            <version>${oak.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>oak-store-composite</artifactId>
            <version>${oak.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-api</artifactId>
            <version>${jackrabbit.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-jcr-commons</artifactId>
            <version>${jackrabbit.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-core</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.jcr.api</artifactId>
            <version>2.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.serviceusermapper</artifactId>
            <version>1.3.4</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.jcr.base</artifactId>
            <version>3.0.4</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.commons.threads</artifactId>
            <version>3.2.0</version>
            <scope>provided</scope>
        </dependency>

        <!-- Lucene Index -->
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>oak-lucene</artifactId>
            <version>${oak.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tika</groupId>
            <artifactId>tika-core</artifactId>
            <version>1.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-analyzers-common</artifactId>
          <version>${lucene.version}</version>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-queryparser</artifactId>
          <version>${lucene.version}</version>
          <scope>provided</scope>
        </dependency>
        <!-- Failover -->
        <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
          <scope>provided</scope>
        </dependency>
         <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-math3</artifactId>
            <version>3.6.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>2.10.0</version>
            <scope>test</scope>
        </dependency>


        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>com.day.jcr.vault</groupId>
          <artifactId>com.day.jcr.vault</artifactId>
          <version>2.4.6</version>
          <scope>test</scope>
        </dependency>
        <!-- dependency required by package installation test -->
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-spi-commons</artifactId>
            <version>2.4.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>org.mongodb</groupId>
          <artifactId>mongo-java-driver</artifactId>
          <scope>test</scope>
          <version>3.4.0</version>
        </dependency>
        <dependency>
          <groupId>org.apache.jackrabbit</groupId>
          <artifactId>jackrabbit-data</artifactId>
          <version>${jackrabbit.version}</version>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>org.apache.jackrabbit</groupId>
          <artifactId>oak-core</artifactId>
          <classifier>tests</classifier>
          <version>${oak.version}</version>
          <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>oak-store-document</artifactId>
            <classifier>tests</classifier>
            <version>${oak.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.testing.osgi-mock</artifactId>
            <version>2.1.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>jsr305</artifactId>
            <version>2.0.0</version>
        </dependency>
    </dependencies>
</project>
