<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.sap.cloud.servicesdk.xbem</groupId>
    <artifactId>emjapi-release</artifactId>
    <version>1.7.2</version>
    <relativePath>../../emjapi-release</relativePath>
  </parent>

  <artifactId>emjapi-adapter-amqp10</artifactId>
  <packaging>jar</packaging>

  <!-- Project related information -->
  <name>emjapi: Adapter: AMQP 1.0 </name>
  <description>AMQP 1.0 Adapter for emjapi (Java API for Enterprise Messaging)</description>
  <url>http://www.sap.com</url>
  <scm>
    <connection />
    <url />
    <developerConnection />
  </scm>
  <developers>
    <developer>
      <name>SAP SE</name>
      <organization>SAP SE</organization>
      <organizationUrl>http://www.sap.com</organizationUrl>
      <email />
    </developer>
  </developers>
  <licenses>
    <license>
      <name>SAP DEVELOPER LICENSE AGREEMENT</name>
      <url>https://tools.hana.ondemand.com/developer-license-3_1.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>


  <!-- Project related build/dependency properties and settings -->
  <properties>
    <!-- Maven related properties -->
    <version.slf4j>1.7.12</version.slf4j>
    <version.junit>4.12</version.junit>
    <!-- https://git-wip-us.apache.org/repos/asf?p=qpid-proton-j.git;a=log -->
    <!-- ? PROTON-1774 Remove sasl processing when complete ? -->
    <!-- ? PROTON-1672 Handle multi-frame transfer payloads more efficiently ?: https://git-wip-us.apache.org/repos/asf?p=qpid-proton-j.git;a=commit;h=ec5547152fed5a74afbe11bbb33541a2cb149fa4  -->
    <!-- Version 0.27.1 is required for qpid-jms client -->
    <version.qpid-proton>0.27.1</version.qpid-proton>
    <!--<version.qpid-proton>0.26.0</version.qpid-proton>-->
    <version.undertow>1.4.20.Final</version.undertow>
    <version.mockito>1.10.19</version.mockito>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <skip.fit>true</skip.fit>
    <!-- Test related properties -->
    <test.integration.broker-admin-url.amqp>http://localhost:8082</test.integration.broker-admin-url.amqp>
    <test.integration.broker-url.amqp>amqp://localhost:35672</test.integration.broker-url.amqp>
  </properties>

  <build>
    <finalName>emjapi-adapter-amqp10</finalName>
    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>2.18.1</version>
        <configuration>
          <skipTests>${skip.fit}</skipTests>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.0.2</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
            </manifest>
            <manifestEntries>
              <Product>${project.groupId}:${project.artifactId}</Product>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>com.sap.cloud.servicesdk.xbem</groupId>
      <artifactId>emjapi-api</artifactId>
      <version>${project.version}</version>
    </dependency>

    <dependency>
      <groupId>org.apache.qpid</groupId>
      <artifactId>proton-j</artifactId>
      <version>${version.qpid-proton}</version>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>${version.slf4j}</version>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>${version.slf4j}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>${version.junit}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>${version.mockito}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>io.undertow</groupId>
      <artifactId>undertow-core</artifactId>
      <version>${version.undertow}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
