<?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>

    <prerequisites>
        <maven>3.2.0</maven>
    </prerequisites>



    <!-- =======================================================================
        general
        ======================================================================== -->

    <!--  Using Sonatype OSS repositories -->
    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>9</version>
    </parent>

    <groupId>name.didier.david</groupId>
    <artifactId>ndd-parent</artifactId>
    <version>0.2.3</version>

    <packaging>pom</packaging>

    <name>NDD Parent</name>
    <description>NDD Parent defines common settings for NDD projects to inherit from.</description>
    <url>https://ndd-java.bitbucket.org/ndd-parent</url>
    <inceptionYear>2014</inceptionYear>



    <!-- =======================================================================
        organization, licenses
        ======================================================================== -->

    <organization>
        <name>David DIDIER</name>
        <url>https://ndd-java.bitbucket.org/</url>
    </organization>

    <licenses>
        <license>
            <name>GNU Lesser General Public License</name>
            <url>LICENSE.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>



    <!-- =======================================================================
        mailingLists, developers, contributors
        ======================================================================== -->

    <developers>
        <developer>
            <id>ddidier</id>
            <name>David DIDIER</name>
            <email></email>
            <url>https://bitbucket.org/ddidier</url>
            <organization>David DIDIER</organization>
            <organizationUrl>https://bitbucket.org/ddidier</organizationUrl>
            <roles>
                <role>Architect</role>
                <role>Developer</role>
                <role>Owner</role>
            </roles>
            <timezone>1</timezone>
            <properties />
        </developer>
    </developers>

    <!--contributors></contributors-->



    <!-- =======================================================================
        issueManagement, ciManagement, scManagement, distributionManagement
        ======================================================================== -->

    <issueManagement>
        <system>BitBucket Issues</system>
        <url>https://bitbucket.org/ndd-java/${project.artifactId}/issues</url>
    </issueManagement>

    <!--ciManagement>
        <system></system>
        <url></url>
    </ciManagement-->

    <scm>
        <connection>scm:git:ssh://git@bitbucket.org/ndd-java/${project.artifactId}.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/ndd-java/${project.artifactId}.git</developerConnection>
        <url>https://bitbucket.org/ndd-java/${project.artifactId}.git</url>
    </scm>



    <!-- =======================================================================
        build
        ======================================================================== -->

    <build>

        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <!-- Copy README.md for site generation -->
                    <execution>
                        <id>prepare-site-generation</id>
                        <phase>pre-site</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <copy file="${basedir}/README.md"
                                    tofile="${basedir}/src/site/markdown/README.md"
                                 overwrite="true"
                                     force="true" />
                            </target>
                        </configuration>
                    </execution>
                    <!-- Delete previously copied README.md -->
                    <execution>
                        <id>cleanup-site-generation</id>
                        <phase>site</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <delete file="${basedir}/src/site/markdown/README.md" />
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.5</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.8</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.1</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-help-plugin</artifactId>
                <version>2.2</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.5.1</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.4.2</version><!--$NO-MVN-MAN-VER$-->
                <configuration>
                    <mavenExecutorId>forked-path</mavenExecutorId>
                    <useReleaseProfile>false</useReleaseProfile>
                    <arguments>${arguments} -Psonatype-oss-release</arguments>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.3</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.doxia</groupId>
                        <artifactId>doxia-module-markdown</artifactId>
                        <version>1.5</version>
                    </dependency>
                </dependencies>
            </plugin>

        </plugins>

    </build>



    <!-- =======================================================================
        reporting
        ======================================================================== -->

    <reporting>
        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>2.7</version>
            </plugin>

        </plugins>
    </reporting>



    <!-- =======================================================================
        profiles
        ======================================================================== -->

    <profiles>

        <!-- Eclipse profile : this profile IS NOT ACTIVE by default. To be
             activated, the "eclipse.running" variable must be set to "true"
             (a convenient location is the "eclipse.ini" file). -->
        <profile>
            <id>eclipse</id>
            <activation>
                <property>
                    <name>eclipse.running</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.eclipse.m2e</groupId>
                            <artifactId>lifecycle-mapping</artifactId>
                            <version>1.0.0</version>
                            <configuration>
                                <lifecycleMappingMetadata>
                                    <pluginExecutions>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-dependency-plugin</artifactId>
                                                <versionRange>[0.0.0,)</versionRange>
                                                <goals>
                                                    <goal>copy-dependencies</goal>
                                                    <goal>unpack</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore />
                                            </action>
                                        </pluginExecution>
                                        <pluginExecution>
                                            <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-enforcer-plugin</artifactId>
                                                <versionRange>[0.0.0,)</versionRange>
                                                <goals>
                                                    <goal>enforce</goal>
                                                </goals>
                                            </pluginExecutionFilter>
                                            <action>
                                                <ignore />
                                            </action>
                                        </pluginExecution>
                                    </pluginExecutions>
                                </lifecycleMappingMetadata>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>

    </profiles>



    <!-- =======================================================================
        properties
        ======================================================================== -->

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

</project>
