<?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">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.adobe.nlp</groupId>
        <artifactId>adobenlp</artifactId>
        <version>1.8.4</version>
    </parent>

    <artifactId>adobenlp-core</artifactId>
    <name>adobenlp-core</name>

    <packaging>bundle</packaging>

    <build>
        <plugins>

            <!--<plugin>-->
                <!--<groupId>org.apache.maven.plugins</groupId>-->
                <!--<artifactId>maven-deploy-plugin</artifactId>-->
                <!--<configuration>-->
                    <!--<skip>false</skip>-->
                <!--</configuration>-->
            <!--</plugin>-->

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${jdk.version}</source>
                    <target>${jdk.version}</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <index>true</index>
                        <manifest>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
                        <Export-Package>
                            com.adobe.nlp.core,

                            com.adobe.nlp.core.annotation.component,
                            com.adobe.nlp.core.annotation.utils,

                            com.adobe.nlp.core.factory,
                            com.adobe.nlp.core.json,

                            com.adobe.nlp.core.model,
                            com.adobe.nlp.core.model.constants,
                            com.adobe.nlp.core.model.workflow,


                            com.adobe.nlp.core.workflowProcessor,
                            com.adobe.nlp.core.repository,
                            com.adobe.nlp.core.service,

                            com.adobe.nlp.core.utils.config,
                            com.adobe.nlp.core.utils.resource,
                        </Export-Package>
                        <Import-Package>

                            *;resolution:=optional
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.sling</groupId>
                <artifactId>maven-sling-plugin</artifactId>
                <executions>
                    <execution>
                        <id>install-bundle</id>
                        <goals>
                            <goal>install</goal>
                        </goals>
                        <configuration>
                            <slingUrl>http://localhost:4502/system/console</slingUrl>
                            <user>admin</user>
                            <password>admin</password>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>

    </build>

    <properties>
        <configuration.version>1.5.9</configuration.version>
    </properties>

    <dependencies>

        <!-- <dependency> -->
        <!-- <groupId>org.apache.tapestry</groupId> -->
        <!-- <artifactId>tapestry-workflow</artifactId> -->
        <!-- <version>5.3.8</version> -->
        <!-- </dependency> -->

        <dependency>
            <groupId>com.adobe.nlp</groupId>
            <artifactId>adobenlp-configuration</artifactId>
            <version>${configuration.version}</version>
        </dependency>

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>18.0</version>
            <!--<scope>provided</scope>-->
        </dependency>

        <!--<dependency>-->
            <!--<groupId>net.sf.trove4j</groupId>-->
            <!--<artifactId>trove4j</artifactId>-->
            <!--<version>3.0.3</version>-->
        <!--</dependency>-->

        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.3.1</version>
            <!--<scope>provided</scope>-->
        </dependency>

    </dependencies>


</project>