<?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>oss-parent</artifactId>
    <groupId>org.sonatype.oss</groupId>
    <version>9</version>
    <relativePath>../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>io.cucumber</groupId>
  <artifactId>pro-plugin</artifactId>
  <packaging>bundle</packaging>
  <name>cucumber-pro-plugin</name>
  <version>1.2.4</version>
  <description>Cucumber Pro Plugin</description>
  <url>https://github.com/cucumber-ltd/cucumber-pro-plugin-jvm</url>
  <licenses>
    <license>
      <name>MIT License</name>
      <url>http://www.opensource.org/licenses/mit-license</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/cucumber-ltd/cucumber-pro-plugin-jvm.git</connection>
    <developerConnection>scm:git:git@github.com:cucumber-ltd/cucumber-pro-plugin-jvm.git</developerConnection>
    <tag>v1.2.4</tag>
    <url>git://github.com/cucumber-ltd/cucumber-pro-plugin-jvm.git</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.7.0</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
          <showWarnings>true</showWarnings>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.20.1</version>
        <configuration>
          <argLine>${surefireArgLine}</argLine>
          <useFile>false</useFile>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>3.3.0</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-Description />
            <Export-Package>io.cucumber.cucumberexpressions.*</Export-Package>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${jacoco-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>pre-unit-test</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
            <configuration>
              <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
              <propertyName>surefireArgLine</propertyName>
            </configuration>
          </execution>
          <execution>
            <id>post-unit-test</id>
            <phase>test</phase>
            <goals>
              <goal>report</goal>
            </goals>
            <configuration>
              <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
              <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5.3</version>
        <configuration>
          <tagNameFormat>v@{project.version}</tagNameFormat>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>com.jcraft:jsch.agentproxy.connector-factory</artifact>
                  <excludes>
                    <exclude>com/jcraft/jsch/agentproxy/USocketFactory$Socket.class</exclude>
                    <exclude>com/jcraft/jsch/agentproxy/Buffer.class</exclude>
                    <exclude>com/jcraft/jsch/agentproxy/Identity.class</exclude>
                    <exclude>com/jcraft/jsch/agentproxy/USocketFactory.class</exclude>
                    <exclude>com/jcraft/jsch/agentproxy/AgentProxy.class</exclude>
                    <exclude>com/jcraft/jsch/agentproxy/AgentProxyException.class</exclude>
                    <exclude>com/jcraft/jsch/agentproxy/Connector.class</exclude>
                  </excludes>
                </filter>
              </filters>
              <transformers>
                <transformer />
                <transformer>
                  <addHeader>false</addHeader>
                </transformer>
              </transformers>
              <relocations>
                <relocation>
                  <pattern>org.apache</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.org.apache</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>mozilla</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.mozilla</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.eclipse</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.org.eclipse</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.googlecode</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.com.googlecode</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.jcraft</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.com.jcraft</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.slf4j</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.org.slf4j</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.yaml</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.org.yaml</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.sun</pattern>
                  <shadedPattern>io.cucumber.pro.shaded.com.sun</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>test</id>
      <properties>
        <maven.test.skip>false</maven.test.skip>
        <skip.unit.tests>false</skip.unit.tests>
        <gebEnv>test</gebEnv>
        <jacoco.skip>false</jacoco.skip>
        <env>test</env>
      </properties>
    </profile>
    <profile>
      <id>release-sign-artifacts</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <configuration>
                  <useAgent>true</useAgent>
                  <gpgArguments>
                    <arg>--local-user</arg>
                    <arg>devs@cucumber.io</arg>
                  </gpgArguments>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <useAgent>true</useAgent>
              <gpgArguments>
                <arg>--local-user</arg>
                <arg>devs@cucumber.io</arg>
              </gpgArguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>io.cucumber</groupId>
      <artifactId>cucumber-core</artifactId>
      <version>2.1.0</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>cucumber-html</artifactId>
          <groupId>info.cukes</groupId>
        </exclusion>
        <exclusion>
          <artifactId>cucumber-jvm-deps</artifactId>
          <groupId>io.cucumber</groupId>
        </exclusion>
        <exclusion>
          <artifactId>gherkin</artifactId>
          <groupId>io.cucumber</groupId>
        </exclusion>
        <exclusion>
          <artifactId>tag-expressions</artifactId>
          <groupId>io.cucumber</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>info.cukes</groupId>
      <artifactId>cucumber-core</artifactId>
      <version>1.2.4</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>cucumber-jvm-deps</artifactId>
          <groupId>info.cukes</groupId>
        </exclusion>
        <exclusion>
          <artifactId>gherkin</artifactId>
          <groupId>info.cukes</groupId>
        </exclusion>
        <exclusion>
          <artifactId>cucumber-html</artifactId>
          <groupId>info.cukes</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>io.cucumber</groupId>
      <artifactId>cucumber-java</artifactId>
      <version>2.1.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.cucumber</groupId>
      <artifactId>cucumber-junit</artifactId>
      <version>2.1.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>io.undertow</groupId>
      <artifactId>undertow-core</artifactId>
      <version>1.4.12.Final</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>jboss-logging</artifactId>
          <groupId>org.jboss.logging</groupId>
        </exclusion>
        <exclusion>
          <artifactId>xnio-api</artifactId>
          <groupId>org.jboss.xnio</groupId>
        </exclusion>
        <exclusion>
          <artifactId>xnio-nio</artifactId>
          <groupId>org.jboss.xnio</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>io.undertow</groupId>
      <artifactId>undertow-servlet</artifactId>
      <version>1.4.12.Final</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>jboss-servlet-api_3.1_spec</artifactId>
          <groupId>org.jboss.spec.javax.servlet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jboss-annotations-api_1.2_spec</artifactId>
          <groupId>org.jboss.spec.javax.annotation</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${jacoco-maven-plugin.version}</version>
      </plugin>
    </plugins>
  </reporting>
  <properties>
    <jacoco-maven-plugin.version>0.7.9</jacoco-maven-plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
</project>

