<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.github.dozermapper.dozer</groupId>
    <artifactId>dozer-tests-parent</artifactId>
    <version>6.5.2</version>
    <relativePath>../</relativePath>
  </parent>
  <groupId>com.github.dozermapper.dozer</groupId>
  <artifactId>dozer-jmh-tests</artifactId>
  <version>6.5.2</version>
  <name>Dozer :: Tests :: JMH Tests</name>
  <description>Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another. </description>
  <url>https://dozermapper.github.io/</url>
  <inceptionYear>2012</inceptionYear>
  <licenses>
    <license>
      <name>Apache License 2.0</name>
      <url>https://api.github.com/licenses/apache-2.0</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>DozerMapper</id>
      <name></name>
      <email></email>
    </developer>
  </developers>
  <scm>
    <connection>scm:git://github.com/DozerMapper/dozer.git</connection>
    <developerConnection>scm:git://github.com/DozerMapper/dozer.git</developerConnection>
    <url>git://github.com/DozerMapper/dozer.git</url>
  </scm>
  <properties>
    <uberjar.name>benchmarks</uberjar.name>
    <osgi.Export-Package>com.github.dozermapper.jmh.*</osgi.Export-Package>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.github.dozermapper.dozer</groupId>
      <artifactId>dozer-core</artifactId>
      <version>6.5.2</version>
    </dependency>
    <dependency>
      <groupId>org.openjdk.jmh</groupId>
      <artifactId>jmh-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.openjdk.jmh</groupId>
      <artifactId>jmh-generator-annprocess</artifactId>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <finalName>${uberjar.name}</finalName>
              <transformers>
                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                  <mainClass>org.openjdk.jmh.Main</mainClass>
                </transformer>
              </transformers>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>run-benchmarks</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
              <execution>
                <id>run-benchmarks</id>
                <phase>integration-test</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <classpathScope>test</classpathScope>
                  <executable>java</executable>
                  <arguments>
                    <argument>-classpath</argument>
                    <classpath />
                    <argument>org.openjdk.jmh.Main</argument>
                    <argument>-jvmArgs</argument>
                    <argument>-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN</argument>
                    <argument>-bm</argument>
                    <argument>Throughput</argument>
                    <argument>-f</argument>
                    <argument>2</argument>
                    <argument>-i</argument>
                    <argument>5</argument>
                    <argument>-wi</argument>
                    <argument>5</argument>
                  </arguments>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
