<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.scijava</groupId>
    <artifactId>pom-scijava</artifactId>
    <version>23.2.0</version>
    <relativePath />
  </parent>
  <!-- Project's coordinates -->
  <groupId>com.github.celldynamics</groupId>
  <artifactId>pom-quimp-root</artifactId>
  <packaging>pom</packaging>
  <!-- Versioned as parent pom. -->
  <version>23.2.0</version>
  <!-- Name and licencing and other project informations -->
  <name>QuimP parent POM</name>
  <url>www.warwick.ac.uk/quimp</url>
  <description>Parent POM for QuimP and other projects related to it</description>
  <inceptionYear>2017</inceptionYear>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <!--
      NB: We override these properties to make the enforcer happy.
      You will need to override them in your POM, too... to valid values.
      -->
    <license.licenseName>MIT</license.licenseName>
    <license.copyrightOwners>N/A</license.copyrightOwners>
    <license.url>https://github.com/CellDynamics/pom-quimp-root/blob/master/LICENSE</license.url>
  </properties>
  <!--
      NB: We override these properties to make the enforcer happy.
      You will need to override them in your POM, too... to valid values.
  -->
  <scm>
    <connection>scm:git:https://github.com/CellDynamics/pom-quimp-root.git</connection>
    <developerConnection>scm:git:https://github.com/CellDynamics/pom-quimp-root.git</developerConnection>
    <url>https://github.com/CellDynamics/pom-quimp-root/</url>
    <tag>pom-quimp-root-23.2.0</tag>
  </scm>
  <!--
      NB: We override these properties to make the enforcer happy.
      You will need to override them in your POM, too... to valid values.
  -->
  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/CellDynamics/pom-quimp-root/issues/</url>
  </issueManagement>
  <licenses>
    <license>
      <name>${license.licenseName}</name>
      <url>${license.url}</url>
    </license>
  </licenses>
  <organization>
    <name>Department of Computer Science, Warwick University</name>
    <url>http://www2.warwick.ac.uk/fac/sci/dcs/</url>
  </organization>
  <!--
      NB: We override these properties to make the enforcer happy.
      You will need to override them in your POM, too... to valid values.
   -->
  <developers>
    <developer>
      <id>pbaniukiewicz</id>
      <name>Piotr Baniukiewicz</name>
      <email>p.baniukiewicz@warwick.ac.uk</email>
      <organization>University of Warwick</organization>
      <roles>
        <role>lead</role>
        <role>developer</role>
        <role>support</role>
        <role>reviewer</role>
        <role>maintainer</role>
      </roles>
      <timezone>London</timezone>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Piotr Baniukiewicz</name>
      <email>p.baniukiewicz@warwick.ac.uk</email>
      <organization>University of Warwick</organization>
      <roles>
        <role>developer</role>
      </roles>
      <timezone>London</timezone>
    </contributor>
  </contributors>
  <!--
      NB: We override these properties to make the enforcer happy.
      You will need to override them in your POM, too... to valid values.
   -->
  <mailingLists>
    <mailingList>
      <name>N/A</name>
      <archive>N/A</archive>
    </mailingList>
  </mailingLists>
  <ciManagement>
    <system>None</system>
  </ciManagement>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>2.18.0</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>pl.pragmatists</groupId>
        <artifactId>JUnitParams</artifactId>
        <version>1.1.1</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <scope>test</scope>
        <version>4.12</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.jacoco</groupId>
          <artifactId>jacoco-maven-plugin</artifactId>
          <version>0.7.9</version>
          <configuration>
            <dataFile>${jaCoCoExecutionDataFile}</dataFile>
          </configuration>
          <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>
                <!-- Sets the path to the file which contains the execution data. -->
                <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
                <!-- Sets the output directory for the code coverage report. -->
                <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <!-- https://www.petrikainulainen.net/programming/maven/creating-code-coverage-reports-for-unit-and-integration-tests-with-the-jacoco-maven-plugin/ -->
          <configuration>
            <!-- Sets the VM argument line used when unit tests are run. -->
            <argLine>${surefireArgLine}</argLine>
            <!-- Skips unit tests if the value of skip.unit.tests property is true -->
            <skipTests>${skip.unit.tests}</skipTests>
            <!-- Excludes integration tests when unit tests are run. -->
            <excludes>
              <exclude>**/IT*.java</exclude>
            </excludes>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>2.17</version>
          <dependencies>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>7.5.1</version>
            </dependency>
          </dependencies>
          <configuration>
            <configLocation>http://pilip.lnx.warwick.ac.uk/quimp_google_checks.xml</configLocation>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <profiles>
    <profile>
      <id>dev-collectdeps</id>
      <!-- Default profile for building pure jar -->
      <!-- Save dependencies in separate folder -->
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
              <execution>
                <id>copy-dependencies</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-dependencies</goal>
                </goals>
                <configuration>
                  <outputDirectory>${project.build.directory}/dependencies</outputDirectory>
                  <overWriteReleases>false</overWriteReleases>
                  <overWriteSnapshots>false</overWriteSnapshots>
                  <overWriteIfNewer>true</overWriteIfNewer>
                  <excludeTransitive>true</excludeTransitive>
                  <includeScope>runtime</includeScope>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <reporting />
</project>
