<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>onos-netconf-providers</artifactId>
    <groupId>org.onosproject</groupId>
    <version>1.3.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>onos-netconf-provider-device</artifactId>
  <packaging>bundle</packaging>
  <description>ONOS Netconf protocol device provider</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <filters>
            <filter>
              <artifact>com.tailf:JNC</artifact>
              <includes>
                <include>com/tailf/jnc/**</include>
              </includes>
            </filter>
            <filter>
              <artifact>ch.ethz.ganymed:ganymed-ssh2</artifact>
              <includes>
                <include>ch/ethz/ssh2/**</include>
              </includes>
            </filter>
            <filter>
              <artifact>org.jdom:jdom2</artifact>
              <includes>
                <include>org/jdom2/**</include>
              </includes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-scr-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Export-Package>com.tailf.jnc,
                            ch.ethz.ssh2,
                            ch.ethz.ssh2.auth,
                            ch.ethz.ssh2.channel,
                            ch.ethz.ssh2.crypto,
                            ch.ethz.ssh2.crypto.cipher,
                            ch.ethz.ssh2.crypto.dh,
                            ch.ethz.ssh2.crypto.digest,
                            ch.ethz.ssh2.log,
                            ch.ethz.ssh2.packets,
                            ch.ethz.ssh2.server,
                            ch.ethz.ssh2.sftp,
                            ch.ethz.ssh2.signature,
                            ch.ethz.ssh2.transport,
                            ch.ethz.ssh2.util,
                            org.jdom2,
                            org.jdom2.input,
                            org.jdom2.output,
                            org.jdom2.adapters,
                            org.jdom2.filter,
                            org.jdom2.internal,
                            org.jdom2.located,
                            org.jdom2.transform,
                            org.jdom2.util,
                            org.jdom2.xpath,
                            org.jdom2.input.sax,
                            org.jdom2.input.stax,
                            org.jdom2.output.support,
                            org.jdom2.xpath.jaxen,
                            org.jdom2.xpath.util</Export-Package>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.onosproject</groupId>
        <artifactId>onos-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.compendium</artifactId>
      <version>4.3.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>4.3.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.onosproject</groupId>
      <artifactId>onlab-junit</artifactId>
      <version>1.3.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>guava-testlib</artifactId>
          <groupId>com.google.guava</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
      <version>3.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>cglib-nodep</artifactId>
          <groupId>cglib</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.onosproject</groupId>
      <artifactId>onos-api</artifactId>
      <version>1.3.0</version>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.scr.annotations</artifactId>
      <version>1.9.8</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-core</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-library</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.6</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-jdk14</artifactId>
      <version>1.7.6</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

