<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2015, 2017 Inocybe Technologies, and others. All rights reserved.

This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html
-->
<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>org.opendaylight.odlparent</groupId>
      <artifactId>odlparent-lite</artifactId>
      <version>1.8.4-Carbon</version>
      <relativePath>../../../..//odlparent/odlparent-lite</relativePath>
    </parent>

    <groupId>org.opendaylight.netvirt</groupId>
    <artifactId>ovsdb-ui-bundle</artifactId>
    <version>0.4.4-Carbon</version>
    <name>ODL :: netvirt :: ${project.artifactId}</name>
    <packaging>bundle</packaging>
    <description>The OVSDB Plugin integration project is a project for OpenDaylight that will implement the Open vSwitch Database RFC 7047 management protocol allowing the Southbound configuration of vSwitches and a network virtualization implementation.</description>
    <licenses>
        <license>
            <name>Eclipse Public License v1.0</name>
            <url>http://www.eclipse.org/legal/epl-v10.html</url>
        </license>
    </licenses>
    <scm>
        <connection>scm:git:ssh://git.opendaylight.org:29418/netvirt.git</connection>
        <developerConnection>scm:git:ssh://git.opendaylight.org:29418/netvirt.git</developerConnection>
        <tag>HEAD</tag>
        <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
    </scm>

    <properties>
      <dlux.version>0.5.4-Carbon</dlux.version>
    </properties>

    <dependencies>
      <dependency>
        <groupId>org.opendaylight.dlux</groupId>
          <artifactId>loader</artifactId>
          <version>${dlux.version}</version>
        </dependency>
        <dependency>
          <groupId>org.opendaylight.netvirt</groupId>
          <artifactId>ovsdb-ui-module</artifactId>
          <version>${project.version}</version>
          <scope>provided</scope>
        </dependency>
    </dependencies>
    <build>
        <resources>
          <resource>
            <directory>target/generated-resources</directory>
          </resource>
          <resource>
            <directory>src/main/resources</directory>
         </resource>
        </resources>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
              <execution>
                <id>unpack-loader-resources</id>
                <goals>
                  <goal>unpack</goal>
                </goals>
                <phase>generate-resources</phase>
                <configuration>
               <artifactItems>
                   <artifactItem>
                      <groupId>org.opendaylight.netvirt</groupId>
                      <artifactId>ovsdb-ui-module</artifactId>
                      <version>${project.version}</version>
                      <overWrite>true</overWrite>
                      <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
                    </artifactItem>
                  </artifactItems>
                  <excludes>META-INF\/**, ovsdb\/spec\/**, ovsdb\/mocks\/**</excludes>
                  <ignorePermissions>false</ignorePermissions>
                </configuration>
              </execution>
            </executions>
          </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Import-Package>org.osgi.service.http,
                                        org.osgi.framework;version="1.0.0",
                                        org.opendaylight.dlux.loader,
                                        org.slf4j
                        </Import-Package>
                    <Export-Package/>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <!--
        Maven Site Configuration

        The following configuration is necessary for maven-site-plugin to
        correctly identify the correct deployment path for OpenDaylight Maven
        sites.
    -->
    <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>

    <distributionManagement>
        <site>
            <id>opendaylight-site</id>
            <url>${nexus.site.url}/${project.artifactId}/</url>
        </site>
    </distributionManagement>
</project>
