<?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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.robotframework</groupId>
  <artifactId>javafxlibrary</artifactId>
  <name>${project.groupId}:${project.artifactId}</name>
  <version>0.5.4</version>
  <description>JavaFXLibrary for the Robot Framework.</description>
  <url>https://github.com/eficode/JavaFXLibrary/</url>
  <issueManagement>
    <system>Github Issues</system>
    <url>https://github.com/eficode/JavaFXLibrary/issues</url>
  </issueManagement>
  <developers>
    <developer>
      <name>Jukka Haavisto</name>
      <email>jukka.haavisto@eficode.com</email>
      <organization>Eficode</organization>
      <organizationUrl>http://www.eficode.com</organizationUrl>
    </developer>
    <developer>
      <name>Sami Pesonen</name>
      <email>sami.pesonen@eficode.com</email>
      <organization>Eficode</organization>
      <organizationUrl>http://www.eficode.com</organizationUrl>
    </developer>
    <developer>
      <name>Pasi Saikkonen</name>
      <email>pasi.saikkonen@eficode.com</email>
      <organization>Eficode</organization>
      <organizationUrl>http://www.eficode.com</organizationUrl>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/eficode/JavaFXLibrary.git</connection>
    <developerConnection>scm:git:ssh://github.com:eficode/JavaFXLibrary.git</developerConnection>
    <url>http://github.com/eficode/JavaFXLibrary/tree/master</url>
  </scm>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*.properties</include>
        </includes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <excludes>
          <exclude>**/*.properties</exclude>
        </excludes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.2</version>
        <configuration>
          <argLine>-javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar</argLine>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.7</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>ossrh</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>false</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.0</version>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
              <mainClass>JavaFXLibrary</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>3.2.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <archive>
            <manifest>
              <mainClass>JavaFXLibrary</mainClass>
            </manifest>
          </archive>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.robotframework</groupId>
        <artifactId>robotframework-maven-plugin</artifactId>
        <version>1.5.1</version>
        <executions>
          <execution>
            <id>acceptance tests</id>
            <phase>integration-test</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <includes>
                <include>smoke</include>
              </includes>
              <excludes>
                <exclude>not-ready</exclude>
              </excludes>
              <nonCriticalTags>
                <nonCriticalTag>monocle-issue</nonCriticalTag>
              </nonCriticalTags>
              <logLevel>TRACE:INFO</logLevel>
              <dryrun>false</dryrun>
              <variables>
                <variable>appJar:${project.build.directory}/${project.artifactId}*tests.jar</variable>
              </variables>
            </configuration>
          </execution>
          <execution>
            <id>documentation</id>
            <phase>package</phase>
            <goals>
              <goal>libdoc</goal>
            </goals>
            <configuration>
              <libdoc>
                <outputDirectory>${project.build.directory}</outputDirectory>
                <outputFile>${project.artifactId}.html</outputFile>
                <libraryOrResourceFile>JavaFXLibrary</libraryOrResourceFile>
                <version>${project.version}</version>
              </libdoc>
            </configuration>
          </execution>
          <execution>
            <id>xml</id>
            <phase>package</phase>
            <goals>
              <goal>libdoc</goal>
            </goals>
            <configuration>
              <libdoc>
                <outputDirectory>${project.build.directory}</outputDirectory>
                <outputFile>${project.artifactId}.xml</outputFile>
                <libraryOrResourceFile>JavaFXLibrary</libraryOrResourceFile>
                <version>${project.version}</version>
              </libdoc>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer>
                  <mainClass>JavaFXLibrary</mainClass>
                </transformer>
              </transformers>
              <relocations>
                <relocation>
                  <pattern>com.google.common</pattern>
                  <shadedPattern>shaded.com.google.common</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons</pattern>
                  <shadedPattern>shaded.org.apache.commons</shadedPattern>
                </relocation>
              </relocations>
              <artifactSet>
                <includes>
                  <include>*:*</include>
                </includes>
              </artifactSet>
              <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>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.1.1</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
              <execution>
                <id>attach-artifacts</id>
                <phase>package</phase>
                <goals>
                  <goal>attach-artifact</goal>
                </goals>
                <configuration>
                  <artifacts>
                    <artifact>
                      <file>/Users/sapesonen/work_local/tools/git/JavaFXLibrary/target/javafxlibrary.html</file>
                      <type>html</type>
                    </artifact>
                    <artifact>
                      <file>/Users/sapesonen/work_local/tools/git/JavaFXLibrary/target/javafxlibrary.xml</file>
                      <type>xml</type>
                    </artifact>
                  </artifacts>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>package</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <configuration>
                  <gpgArguments>
                    <arg>--pinentry-mode</arg>
                    <arg>loopback</arg>
                  </gpgArguments>
                  <keyname>210A83EB54F673B3A60CF49D039574FFE0936039</keyname>
                  <passphraseServerId>210A83EB54F673B3A60CF49D039574FFE0936039</passphraseServerId>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.jmockit</groupId>
      <artifactId>jmockit</artifactId>
      <version>1.44</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <jmockit.version>1.44</jmockit.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
</project>
