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

    <!-- +=============================================== -->
    <!-- | Section 1:  Project information                -->
    <!-- +=============================================== -->
    <parent>
        <groupId>se.mithlond.codestyle.poms</groupId>
        <artifactId>mithlond-codestyle-model-parent</artifactId>
        <version>1.11.0</version>
        <relativePath />
    </parent>

    <groupId>se.mithlond.services.content.model</groupId>
    <artifactId>mithlond-services-content-model</artifactId>
    <version>1.0.1</version>
    <name>${project.artifactId}</name>
    <description>Mithlond Service: Content (Model, version ${project.version})</description>
    <url>${site.top.url}/${path.in.reactor}</url>

    <properties>

        <!-- Reduce coverage requirements -->
        <breakOnFailure.pmd>false</breakOnFailure.pmd>

        <!--
            Define the name and type of this reactor
        -->
        <path.in.reactor>content/content-model</path.in.reactor>
        <reactor.name>mithlond-services</reactor.name>

        <!-- Build-controlling properties -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <timestamp>${maven.build.timestamp}</timestamp>
        <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss.sssZ</maven.build.timestamp.format>
    </properties>

    <!-- +=============================================== -->
    <!-- | Section 2:  Dependency (management) settings   -->
    <!-- +=============================================== -->
    <dependencies>
        <!-- Internal dependencies -->
        <dependency>
            <groupId>se.mithlond.services.organisation.model</groupId>
            <artifactId>mithlond-services-organisation-model</artifactId>
            <version>1.0.1</version>
        </dependency>
        <dependency>
            <groupId>se.mithlond.services.shared.test.entity</groupId>
            <artifactId>mithlond-services-shared-entity-test</artifactId>
            <version>1.0.1</version>
            <scope>test</scope>
        </dependency>

        <!-- External dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.5</version>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.5</version>
        </dependency>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>se.jguru.nazgul.test.xmlbinding</groupId>
            <artifactId>nazgul-core-xmlbinding-test</artifactId>
            <version>${nazgul-core.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <!-- +=============================================== -->
    <!-- | Section 3:  Build settings                     -->
    <!-- +=============================================== -->
    <build>
        <resources>
            <resource>
                <directory>${basedir}/src/main/resources</directory>
            </resource>
            <resource>
                <directory>${basedir}/target/jaxb2/transformed/generated-schema</directory>
            </resource>
        </resources>

        <plugins>
            <!--
               Generate a XSDs for the project.
           -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxb2-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>schemagen</id>
                        <goals>
                            <goal>schemagen</goal>
                        </goals>
                        <phase />
                        <configuration combine.children="override">
                            <transformSchemas>
                                <transformSchema>
                                    <uri>http://www.jguru.se/nazgul/core</uri>
                                    <toFile>NazgulCore.xsd</toFile>
                                </transformSchema>
                                <transformSchema>
                                    <uri>http://xmlns.mithlond.se/xml/ns/shared/jaxb</uri>
                                    <toFile>MithlondSharedJaxb.xsd</toFile>
                                </transformSchema>
                                <transformSchema>
                                    <uri>http://xmlns.mithlond.se/xml/ns/organisation</uri>
                                    <toFile>MithlondOrganisation.xsd</toFile>
                                </transformSchema>
                                <transformSchema>
                                    <uri>http://xmlns.mithlond.se/xml/ns/organisation/transport</uri>
                                    <toFile>MithlondOrganisationTransport.xsd</toFile>
                                </transformSchema>
                            </transformSchemas>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <!-- +=============================================== -->
    <!-- | Section 4:  External systems                   -->
    <!-- +=============================================== -->

    <!--
        Compensate for Maven standard variable extrapolation.
        Git requires steady URLs (... but Subversion requires path extrapolation, hence the problem).
     -->
    <distributionManagement>
        <site>
            <id>github</id>
            <url>${distroManagement.url}</url>
        </site>
    </distributionManagement>

    <scm>
        <connection>${scm.connection.url}</connection>
        <developerConnection>${scm.devConnection.url}</developerConnection>
        <url>${scm.url}</url>
        <tag>backend-services-1.0.1</tag>
    </scm>

</project>
