<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2017 Adobe. All rights reserved.
    This file is licensed to you under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License. You may obtain a copy
    of the License at http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under
    the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
    OF ANY KIND, either express or implied. See the License for the specific language
    governing permissions and limitations under the License.

-->
<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">
  <artifactId>com.adobe.aio.aem.event.osgimapping</artifactId>

  <build>
    <plugins>
      <plugin>
        <artifactId>sling-maven-plugin</artifactId>
        <groupId>org.apache.sling</groupId>
      </plugin>
      <plugin>
        <artifactId>bnd-maven-plugin</artifactId>
        <dependencies>
          <dependency>
            <artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId>
            <groupId>org.apache.sling</groupId>
            <version>1.0.2</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <configuration>
              <bnd><![CDATA[
Bundle-Category: aio
Bundle-Vendor: Adobe
Bundle-SymbolicName: ${project.artifactId}
Import-Package: javax.annotation;version=0.0.0,com.fasterxml.jackson.*;version="[2.3.0, 3.0.0)",*
 -exportcontents: ${packages;VERSIONED}
Export-Package: com.adobe.aio.aem.event.osgimapping,
com.adobe.aio.aem.event.osgimapping.eventhandler,
com.adobe.aio.aem.event.xdm
 -snapshot: ${tstamp;yyyyMMddHHmmssSSS}
Bundle-DocURL:
 -plugin org.apache.sling.caconfig.bndplugin.ConfigurationClassScannerPlugin
                                ]]></bnd>
            </configuration>
            <goals>
              <goal>bnd-process</goal>
            </goals>
            <id>bnd-process</id>
          </execution>
        </executions>
        <groupId>biz.aQute.bnd</groupId>
      </plugin>
      <plugin>
        <artifactId>bnd-baseline-maven-plugin</artifactId>
        <configuration>
          <failOnMissing>false</failOnMissing>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>baseline</goal>
            </goals>
            <id>baseline</id>
          </execution>
        </executions>
        <groupId>biz.aQute.bnd</groupId>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
          </archive>
        </configuration>
        <groupId>org.apache.maven.plugins</groupId>
      </plugin>
    </plugins>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
  </build>

  <dependencies>
    <dependency>
      <artifactId>com.adobe.aio.aem.core</artifactId>
      <groupId>com.adobe</groupId>
      <scope>provided</scope>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <artifactId>com.adobe.aio.aem.event.management</artifactId>
      <groupId>com.adobe</groupId>
      <scope>provided</scope>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <artifactId>com.adobe.aio.aem.event.publish</artifactId>
      <groupId>com.adobe</groupId>
      <scope>provided</scope>
      <version>${project.version}</version>
    </dependency>

    <dependency>
      <artifactId>aio-lib-java-events-mgmt</artifactId>
      <groupId>com.adobe</groupId>
      <scope>provided</scope>
      <version>${project.version}</version>
    </dependency>
    <!-- adobe.io XDM event model -->
    <dependency>
      <artifactId>xdm-event-model</artifactId>
      <groupId>com.adobe.event</groupId>
      <scope>provided</scope>
    </dependency>

    <!-- AEM related -->
    <dependency>
      <artifactId>uber-jar</artifactId>
      <classifier>apis</classifier>
      <groupId>com.adobe.aem</groupId>
    </dependency>
    <dependency>
      <artifactId>org.apache.sling.servlets.annotations</artifactId>
      <groupId>org.apache.sling</groupId>
    </dependency>
    <dependency>
      <artifactId>jcr</artifactId>
      <groupId>javax.jcr</groupId>
    </dependency>
    <!-- osgi -->
    <dependency>
      <artifactId>org.osgi.service.metatype.annotations</artifactId>
      <groupId>org.osgi</groupId>
    </dependency>
    <dependency>
      <artifactId>org.osgi.service.component.annotations</artifactId>
      <groupId>org.osgi</groupId>
    </dependency>
    <dependency>
      <artifactId>org.osgi.service.component</artifactId>
      <groupId>org.osgi</groupId>
    </dependency>
    <dependency>
      <artifactId>org.osgi.service.cm</artifactId>
      <groupId>org.osgi</groupId>
    </dependency>
    <dependency>
      <artifactId>org.osgi.framework</artifactId>
      <groupId>org.osgi</groupId>
    </dependency>
    <dependency>
      <artifactId>org.osgi.annotation.versioning</artifactId>
      <groupId>org.osgi</groupId>
    </dependency>
    <!-- EOF AEM related -->

    <!-- various -->
    <dependency>
      <artifactId>javax.servlet-api</artifactId>
      <groupId>javax.servlet</groupId>
    </dependency>
    <dependency>
      <artifactId>slf4j-api</artifactId>
      <groupId>org.slf4j</groupId>
    </dependency>
    <dependency>
      <artifactId>commons-lang3</artifactId>
      <groupId>org.apache.commons</groupId>
    </dependency>
    <dependency>
      <artifactId>commons-text</artifactId>
      <groupId>org.apache.commons</groupId>
    </dependency>
    <dependency>
      <artifactId>jackson-databind</artifactId>
      <groupId>com.fasterxml.jackson.core</groupId>
    </dependency>

    <!-- test -->
    <dependency>
      <artifactId>junit-dep</artifactId>
      <groupId>junit</groupId>
    </dependency>
    <dependency>
      <artifactId>slf4j-simple</artifactId>
      <groupId>org.slf4j</groupId>
    </dependency>
  </dependencies>
  <description>Adobe I/O - AEM OSGI Events Mapper - OSGI bundle</description>
  <modelVersion>4.0.0</modelVersion>

  <name>Adobe I/O - AEM OSGI Events Mapper - OSGI bundle</name>

  <parent>
    <artifactId>aio-aem</artifactId>
    <groupId>com.adobe</groupId>
    <relativePath>../pom.xml</relativePath>
    <version>0.0.14</version>
  </parent>

</project>
