<?xml version="1.0" encoding="UTF-8"?>
<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">
    <parent>
        <groupId>com.atlassian.confluence.plugins</groupId>
        <artifactId>confluence-space-ia-project</artifactId>
        <version>9.3</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>confluence-space-ia</artifactId>

    <name>Confluence Space IA (Left Sidebar)</name>
    <description>Adds a left sidebar to the Confluence main theme.</description>
    <packaging>atlassian-plugin</packaging>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-api</artifactId>
            <version>${confluence.api.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-create-content-test-support</artifactId>
            <version>${create.content.version}</version>
            <scope>provided</scope>
        </dependency>        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>recently-viewed-plugin</artifactId>
            <version>3.0.11</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <version>${rest.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-plugin</artifactId>
            <version>${ao.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.collections</groupId>
                    <artifactId>google-collections</artifactId>
                </exclusion>
            </exclusions>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>${guava.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>${commons.io.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-nav-links-plugin</artifactId>
            <version>${navlinks.plugin.version}</version>
            <scope>provided</scope>
            <!-- At the time of exclusion, nav-links brings in 4.2.x of httpcomponents which is
            incompatible with the version of htmlunit used in Confluence (see CONFDEV-27213) -->
            <exclusions>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpclient</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpclient-cache</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>${javax.servlet.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource</artifactId>
            <version>${confluence.project.plugins.webresource.version}</version>
            <scope>provided</scope>
        </dependency>

        <!-- Dependencies for testing-->
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-test-support</artifactId>
            <version>${confluence.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <!-- At the time of exclusion, this brings in 4.2.x of httpcomponents which is
                    incompatible with the version of htmlunit used in Confluence (see CONFDEV-27213) -->
                    <groupId>com.atlassian.confluence.plugins</groupId>
                    <artifactId>confluence-ondemand-crowd-proxy-plugin</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-acceptance-test</artifactId>
            <version>${confluence.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.testng</groupId>
                    <artifactId>testng</artifactId>
                </exclusion>
            </exclusions>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>${mockito.core.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-testutils</artifactId>
            <version>${confluence.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-webdriver-test</artifactId>
            <version>${confluence.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>atlassian-confluence-pageobjects</artifactId>
            <version>${confluence.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-space-ia-test-support</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.1</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
           <!-- publish the artifact under <type>jar</type> as well so it can be consumed easier (without <type />) -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>${build.helper.maven.plugin.version}</version>
            </plugin>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-jar-plugin</artifactId>
               <version>2.4</version>
               <executions>
                   <execution>
                       <id>test-jar</id>
                       <goals>
                           <goal>test-jar</goal>
                       </goals>
                   </execution>
               </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-confluence-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${confluence.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>
                    <systemPropertyVariables>
                        <confluence.version>${confluence.version}</confluence.version> <!-- system property required by Functest RPC plugin -->
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                        <xvfb.display>${xvfb.display}</xvfb.display>
                        <http.port>${http.confluence.port}</http.port>
                        <baseurl.confluence>${baseurl.confluence}</baseurl.confluence>
                        <context.path>${context.confluence.path}</context.path>
                    </systemPropertyVariables>

                    <instructions>
                        <Atlassian-Plugin-Key>com.atlassian.confluence.plugins.confluence-space-ia</Atlassian-Plugin-Key>

                        <Export-Package>com.atlassian.confluence.plugins.ia*</Export-Package>

                        <!--optionals first, in alphabetic order, followed by mandatories, in alphabetic order-->
                        <Import-Package>
                            bucket.user,
                            com.atlassian.activeobjects.external,
                            com.atlassian.bandana;version="[3.1.0,4)",
                            com.atlassian.bonnie;version="[6.1.0,7)",
                            com.atlassian.cache;version="[2.0.4,3)",
                            com.atlassian.config.*;version="[0.19.0,1)",
                            com.atlassian.confluence.api.model.web,
                            com.atlassian.confluence.api.service.web,
                            com.atlassian.confluence.content.render.xhtml,
                            com.atlassian.confluence.content.render.xhtml.links,
                            com.atlassian.confluence.content.render.xhtml.model.inlinetask,
                            com.atlassian.confluence.content.service,
                            com.atlassian.confluence.content.service.comment,
                            com.atlassian.confluence.content.ui,
                            com.atlassian.confluence.core,
                            com.atlassian.confluence.event.events.*,
                            com.atlassian.confluence.labels,
                            com.atlassian.confluence.languages,
                            com.atlassian.confluence.license,
                            com.atlassian.confluence.license.exception,
                            com.atlassian.confluence.mail.notification,
                            com.atlassian.confluence.pages,
                            com.atlassian.confluence.pages.actions,
                            com.atlassian.confluence.pages.persistence.dao,
                            com.atlassian.confluence.plugin.descriptor.web.conditions,
                            com.atlassian.confluence.plugin.descriptor.web.conditions.user,
                            com.atlassian.confluence.plugin.descriptor.web.urlreadingconditions,
                            com.atlassian.confluence.plugins.recentlyviewed,
                            com.atlassian.confluence.renderer,
                            com.atlassian.confluence.renderer.template,
                            com.atlassian.confluence.rpc,
                            com.atlassian.confluence.search.service,
                            com.atlassian.confluence.search.v2,
                            com.atlassian.confluence.search.v2.query,
                            com.atlassian.confluence.search.v2.searchfilter,
                            com.atlassian.confluence.security,
                            com.atlassian.confluence.security.login,
                            com.atlassian.confluence.setup,
                            com.atlassian.confluence.setup.bandana,
                            com.atlassian.confluence.setup.settings,
                            com.atlassian.confluence.spaces,
                            com.atlassian.confluence.spaces.actions,
                            com.atlassian.confluence.status.service,
                            com.atlassian.confluence.status.service.systeminfo,
                            com.atlassian.confluence.themes,
                            com.atlassian.confluence.user,
                            com.atlassian.confluence.user.actions,
                            com.atlassian.confluence.util,
                            com.atlassian.confluence.util.i18n,
                            com.atlassian.confluence.xhtml.api,
                            com.atlassian.core.exception;version="[4.6.11,5)",
                            com.atlassian.core.*,
                            com.atlassian.event.*;version="[2.3.2,3)",
                            com.atlassian.extras.api.*;version="[2.4.0,3)",
                            com.atlassian.fugue;version="[1.1.0,3)",
                            com.atlassian.plugin;version="[3.0.10,4)",
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.plugin.predicate;version="[3.0.10,4)",
                            com.atlassian.plugin.web.*;version="[3.0.0.m9,4)",
                            com.atlassian.plugins.navlink.producer.contentlinks.customcontentlink,
                            com.atlassian.plugins.rest.common.*,
                            com.atlassian.renderer;version="[6.2.10,7)",
                            com.atlassian.sal.api.*;version="[2.10.11,3)",
                            com.atlassian.user.*;version="[3.0.0,4)",
                            com.google.common.base,
                            com.google.common.collect,
                            com.google.common.io,
                            com.google.gson,
                            com.opensymphony.module.propertyset,
                            com.opensymphony.webwork,
                            javax.imageio,
                            javax.naming,
                            javax.servlet.http,
                            javax.transaction,
                            javax.ws.rs,
                            javax.ws.rs.core,
                            javax.xml.bind.annotation,
                            javax.xml.stream,
                            net.java.ao,
                            net.sf.hibernate,
                            net.sf.hibernate.cache,
                            net.sf.hibernate.collection,
                            net.sf.hibernate.connection,
                            net.sf.hibernate.dialect,
                            net.sf.hibernate.engine,
                            net.sf.hibernate.exception,
                            net.sf.hibernate.metadata,
                            net.sf.hibernate.persister,
                            net.sf.hibernate.type,
                            org.apache.commons.io,
                            org.apache.commons.lang,
                            org.apache.commons.lang3,
                            org.j3d.util,
                            org.slf4j,
                            org.springframework.beans.factory,
                            org.springframework.beans.factory.annotation,
                            *;resolution:=optional
                        </Import-Package>

                        <Spring-Context>*;timeout:=60</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
