<?xml version="1.0" encoding="UTF-8"?>
<!--
Maven parent POM for all 'nl.xiam' and 'eu.infomas' Java based projects.
-->
<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.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>9</version>
    </parent>

    <groupId>eu.infomas</groupId>
    <artifactId>infomas-asl</artifactId>
    <version>3.0.4</version>
    <packaging>pom</packaging>
    <name>INFOMAS ASL :: Parent</name>
    <description>Parent POM for open source projects of XIAM Solutions B.V.</description>
    <url>http://rmuller.github.io/infomas-asl/annotation-detector/</url>
    
    <!-- TODO:
    We can not use scm here with ${project.artifactId} variables, because it creates wrong
    URL's in sub modules. So scm must be redefined in the sub modules!
    -->
    <scm>
        <url>https://github.com/rmuller/infomas-asl</url>
        <connection>scm:git:https://github.com/rmuller/infomas-asl</connection>
        <developerConnection>scm:git:https://github.com/rmuller/infomas-asl</developerConnection>
        <tag>infomas-asl-3.0.4</tag>
    </scm>

    <issueManagement>
        <system>GitHub Issues</system>
        <url>https://github.com/rmuller/infomas-asl/issues</url>
    </issueManagement>

    <ciManagement>
        <system>Travis-CI</system>
        <url>https://travis-ci.org/#!/rmuller/infomas-asl</url>
    </ciManagement>

    <modules>
        <module>annotation-detector</module>
    </modules>

    <inceptionYear>2011</inceptionYear>

    <organization>
        <name>XIAM Solutions B.V.</name>
        <url>http://www.xiam.nl</url>
    </organization>

    <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>
        </license>
    </licenses>

    <developers>
        <developer>
            <id>rmuller</id>
            <name>Ronald Muller</name>
            <roles>
                <role>Owner</role>
                <role>Lead Developer</role>
            </roles>
            <timezone>+1</timezone>
            <organization>XIAM Solutions B.V.</organization>
        </developer>
    </developers>

    <prerequisites>
        <!-- 3.0.4: first release where reporting issues are resolved -->
        <!-- 3.1.1: reporting plugins use version info of plugin management -->
        <maven>3.1.1</maven>
    </prerequisites>

    <properties>
        <java.version>1.6</java.version>
        <!-- As close as we can get for the W3C / ISO Date Time format. Due to a
        limitation of Java's SimpleDateFormat the colon in the time zone is missing. -->
        <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
        <!-- Workaround for http://jira.codehaus.org/browse/MRESOURCES-99 -->
        <timestamp>${maven.build.timestamp}</timestamp>
        <checkstyle.baseLocation>https://raw.github.com/rmuller/infomas-asl/master/development</checkstyle.baseLocation>
        <checkstyle.header>checkstyle-header.txt</checkstyle.header>
        <!-- 2.12 uses Checkstyle 5.7 -->
        <checkstyle.version>2.12.1</checkstyle.version>
        <!-- http://mevenide.codehaus.org/m2-site/mevenide2-netbeans/customizations.html -->
        <netbeans.hint.license>apache20</netbeans.hint.license>
        <github.global.server>github</github.global.server>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.9.5</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <!-- TODO: http://jira.codehaus.org/browse/MSITE-516 -->
            <plugins>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <plugin>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.8</version>
                </plugin>
                <plugin>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.9.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.5</version>
                </plugin>
                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.6</version>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.17</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <version>2.4.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.3</version>
                </plugin>
                <plugin>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>${checkstyle.version}</version>
                </plugin>
                <plugin>
                    <!-- since 0.9: "mvn site:site" -->
                    <groupId>com.github.github</groupId>
                    <artifactId>site-maven-plugin</artifactId>
                    <version>0.9</version>
                    <configuration>
                        <message>Creating gh-pages with JavaDoc for ${project.artifactId}-${project.version}</message>
                        <outputDirectory>./target/site/</outputDirectory>
                        <repositoryName>infomas-asl</repositoryName>
                        <repositoryOwner>rmuller</repositoryOwner>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <showDeprecation>true</showDeprecation>
                    <!--
                    Since JDK1.3 javac ignores any optimization flags
                    Size of generated jar file:
                    16302 - default settings
                    16300 - optimize = true (?)
                    14811 - optimize = true; debug = true
                    -->
                    <optimize>true</optimize>
                    <debug>false</debug>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Build-Timestamp>${timestamp}</Build-Timestamp>
                            <Built-By>rmuller@xiam.nl</Built-By>
                        </manifestEntries>
                        <manifest>
                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <configuration>
                    <consoleOutput>true</consoleOutput>
                    <!-- build fails on errors, not on warnings -->
                    <failsOnError>true</failsOnError>
                    <linkXRef>false</linkXRef>
                    <configLocation>${checkstyle.baseLocation}/checkstyle-config.xml</configLocation>
                    <headerLocation>${checkstyle.baseLocation}/${checkstyle.header}</headerLocation>
                    <excludes>eu/infomas/external/**/*.java</excludes>
                </configuration>
                <executions>
                    <execution>
                        <id>checkstyle-main</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.github.github</groupId>
                <artifactId>site-maven-plugin</artifactId>
                <configuration>
                    <merge>false</merge>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>2.7</version>
            </plugin>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>javadoc</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <notree>true</notree>
                    <noindex>true</noindex>
                    <nohelp>true</nohelp>
                    <links>
                        <link>http://docs.oracle.com/javase/6/docs/api/</link>
                    </links>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <aggregate>false</aggregate>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>jxr</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>

            <!-- Code Quality -->
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>${checkstyle.version}</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>checkstyle</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <!-- TODO: SuppressWithNearbyCommentFilter is ignored @ reporting (only) -->
                    <enableRulesSummary>false</enableRulesSummary>
                    <enableRSS>false</enableRSS>
                    <enableSeveritySummary>false</enableSeveritySummary>
                    <configLocation>${checkstyle.baseLocation}/checkstyle-config.xml</configLocation>
                    <headerLocation>${checkstyle.baseLocation}/${checkstyle.header}</headerLocation>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.17</version>
            </plugin>
            <plugin>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <targetJdk>${java.version}</targetJdk>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.5.3</version>
            </plugin>
            <!-- 
            Artifact available in Maven Central does NOT support Java 7 syntax! 
            See https://jira.codehaus.org/browse/JAVANCSS-53 (issue is fixed)
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>javancss-maven-plugin</artifactId>
                <version>2.0</version>
            </plugin>
            -->
        </plugins>
    </reporting>

</project>
