<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or any later version. 
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>.
 *
 **/
-->
<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>

    <groupId>ddf.support</groupId>
    <artifactId>support-pom</artifactId>
    <!-- 
    Manually maintained and must manually update the ddf.support.checkstyle.version property in the /parent/pom.xml to match this 
    version if you want DDF apps to use latest support-checkstyle version; and update the <version> of the <parent> in child module
    support-checkstyle/pom.xml
    -->
    <version>2.3.12</version>
    <name>DDF Support</name>
    <description>DDF Support module contains support files for builds and site report generation
    </description>
    <packaging>pom</packaging>

    <modules>
        <!-- Make sure to list support-githooks first then gitsetup since gitsetup has a dependency on it -->
        <module>support-githooks</module>
        <module>gitsetup</module>
        <module>support-checkstyle</module>
        <module>support-jacoco</module>
        <module>support-findbugs</module>
        <module>support-owasp</module>
        <module>support-pmd</module>
        <module>support-karaf</module>
        <module>support-maven-plugins</module>
    </modules>

    <properties>
        <maven.assembly.plugin.version>2.2.2</maven.assembly.plugin.version>
        <maven.clean.plugin.version>2.4.1</maven.clean.plugin.version>
        <maven.resources.plugin.version>2.5</maven.resources.plugin.version>
        <maven.javadoc.plugin.version>2.7</maven.javadoc.plugin.version>
        <maven.release.plugin.version>2.5.1</maven.release.plugin.version>
        <maven.site.plugin.version>3.4</maven.site.plugin.version>
        <maven.dependency.plugin.version>2.4</maven.dependency.plugin.version>
        <maven.compiler.plugin.version>2.3.2</maven.compiler.plugin.version>
        <maven.deploy.plugin.version>2.6</maven.deploy.plugin.version>
        <maven.install.plugin.version>2.3.1</maven.install.plugin.version>
        <maven.surefire.plugin.version>2.18.1</maven.surefire.plugin.version>
	<maven.jacoco.plugin.version>0.7.9</maven.jacoco.plugin.version>
    </properties>

    <scm>
        <url>https://github.com/codice/ddf-support.git</url>
        <connection>scm:git:git://github.com/codice/ddf-support.git</connection>
        <developerConnection>scm:git:git://github.com/codice/ddf-support.git</developerConnection>
        <tag>support-pom-2.3.12</tag>
    </scm>

    <distributionManagement>
        <snapshotRepository>
            <id>snapshots</id>
            <url>${snapshots.repository.url}</url>
        </snapshotRepository>
        <repository>
            <id>releases</id>
            <url>${releases.repository.url}</url>
        </repository>
    </distributionManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>${maven.deploy.plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>${maven.release.plugin.version}</version>
                    <configuration>
                        <autoVersionSubmodules>true</autoVersionSubmodules>
                        <preparationGoals>clean verify install</preparationGoals>
                        <pushChanges>false</pushChanges>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>${maven.clean.plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>${maven.assembly.plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>${maven.site.plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>${maven.dependency.plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${maven.resources.plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>${maven.install.plugin.version}</version>
                </plugin>

            </plugins>
        </pluginManagement>

        <plugins>

        </plugins>
    </build>

    <repositories>
        <repository>
            <id>codice</id>
            <name>Codice Repository</name>
            <url>http://artifacts.codice.org/content/groups/public/</url>
        </repository>
    </repositories>
</project>
