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

    <groupId>com.covisint</groupId>
    <artifactId>super-pom</artifactId>
    <version>1.1.0</version>
    <packaging>pom</packaging>

    <name>Covisint Super-POM</name>
    <description>Covisint Super-POM</description>
    <url>http://www.covisint.com/</url>

    <properties>
        <!-- assign the special maven.build.timestamp here so it's generally available -->
        <project.build.timestamp>${maven.build.timestamp}</project.build.timestamp>
        <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>

        <!-- plugin properties -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
        <checkstyle.config.location>${project.basedir}/checkstyle.xml</checkstyle.config.location>
        <sonar.url>http://sonar.covisint.com</sonar.url>

        <!-- plugin versions, listed here so they're all in one place and easier to update -->
        <!-- also ensures that the same version is used for plugins shared between build and reporting -->
        <assembly.version>2.4</assembly.version>
        <buildhelper.version>1.8</buildhelper.version>
        <checkstyle.version>2.11</checkstyle.version>
        <clean.version>2.5</clean.version>
        <cobertura.version>2.6</cobertura.version>
        <compiler.version>3.1</compiler.version>
        <dependency.version>2.8</dependency.version>
        <deploy.version>2.8.1</deploy.version>
        <enforcer.plugin>1.3.1</enforcer.plugin>
        <install.version>2.5.1</install.version>
        <jar.version>2.4</jar.version>
        <javadoc.version>2.9.1</javadoc.version>
        <jxr.version>2.4</jxr.version>
        <project-info.version>2.7</project-info.version>
        <resources.version>2.6</resources.version>
        <site.version>3.3</site.version>
        <sonar.version>2.2</sonar.version>
        <source.version>2.2.1</source.version>
        <surefire.version>2.16</surefire.version>
        <svn-revision-number.version>1.13</svn-revision-number.version>
        <war.version>2.4</war.version>
        <enforcer.version>1.4</enforcer.version>
        <animal-sniffer.version>1.14</animal-sniffer.version>
    </properties>

    <!-- Dependencies set for all projects. Be certain anything added here really should apply to every single project. -->
    <dependencies>
        <!-- Compile dependencies -->

        <!-- Runtime dependencies -->

        <!-- Provided dependencies -->

        <!-- Test dependencies -->

    </dependencies>

    <!-- Dependencies with fixed versions and excludes that may be used by projects. -->
    <dependencyManagement>
        <dependencies>
            <!-- Compile dependencies -->
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>16.0.1</version>
            </dependency>

            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>2.3</version>
            </dependency>

            <!-- Provided dependencies -->
            <dependency>
                <groupId>javax.servlet.jsp</groupId>
                <artifactId>javax.jsp-api</artifactId>
                <version>2.2.1</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>jstl</artifactId>
                <version>1.2</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>3.0.1</version>
                <scope>provided</scope>
            </dependency>

            <!-- Runtime dependencies -->

            <!-- Test dependencies -->
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>1.3.175</version>
                <scope>test</scope>
            </dependency>

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

            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>6.8.8</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>${assembly.version}</version>
                    <configuration>
                        <tarLongFileMode>gnu</tarLongFileMode>
                        <ignoreMissingDescriptor>true</ignoreMissingDescriptor>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>${clean.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${compiler.version}</version>
                    <configuration>
                        <debug>true</debug>
                        <showDeprecation>true</showDeprecation>
                        <showWarnings>true</showWarnings>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>${dependency.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>${deploy.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>${install.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>${jar.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>jetty-maven-plugin</artifactId>
                    <configuration>
                        <scanIntervalSeconds>10</scanIntervalSeconds>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${resources.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>${site.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>${source.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${surefire.version}</version>
                    <configuration>
                        <redirectTestOutputToFile>true</redirectTestOutputToFile>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>${war.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>

        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>${buildhelper.version}</version>
                <executions>
                    <execution>
                        <id>attach-artifacts</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>${basedir}/checkstyle.xml</file>
                                    <classifier>checkstyle</classifier>
                                    <type>xml</type>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <!-- validate -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <version>${enforcer.version}</version>
                        <executions>
                            <execution>
                                <id>enforce-maven</id>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <configuration>
                                    <rules>
                                        <requireJavaVersion>
                                            <version>[1.7.0-40,)</version>
                                            <message>Java 1.7, update 40, or later is required.</message>
                                        </requireJavaVersion>
                                        <requireMavenVersion>
                                            <version>[3.0.0,)</version>
                                            <message>Maven 3.0.0 or later is required, Maven 3.1.0 or later is
                                                recommended.</message>
                                        </requireMavenVersion>
                                        <requireReleaseDeps>
                                            <message>No snapshot dependencies are allowed in a release version.</message>
                                        </requireReleaseDeps>
                                        <requireReleaseVersion>
                                            <message>Released project artifact version can not be a SNAPSHOT.</message>
                                        </requireReleaseVersion>
                                        <!-- Ensure that a transitive dependency isn't explicitly down-version'ed -->
                                        <requireUpperBoundDeps />
                                    </rules>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- initialize -->
                    <plugin>
                        <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
                        <artifactId>svn-revision-number-maven-plugin</artifactId>
                        <version>${svn-revision-number.version}</version>
                        <configuration>
                            <entries>
                                <entry>
                                    <path>${project.basedir}</path>
                                    <prefix>scm</prefix>
                                    <depth>infinity</depth>
                                    <reportUnversioned>true</reportUnversioned>
                                    <reportIgnored>false</reportIgnored>
                                    <reportOutOfDate>false</reportOutOfDate>
                                </entry>
                            </entries>
                        </configuration>
                        <executions>
                            <execution>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>revision</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- generate-sources -->

                    <!-- process-sources -->

                    <!-- generate-resources -->

                    <!-- process-resources -->

                    <!-- compile -->

                    <!-- process-classes -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>animal-sniffer-maven-plugin</artifactId>
                        <version>${animal-sniffer.version}</version>
                        <configuration>
                            <signature>
                                <groupId>org.codehaus.mojo.signature</groupId>
                                <artifactId>java17</artifactId>
                                <version>1.0</version>
                            </signature>
                            <ignores>
                                <ignore>com.ibm.icu.*</ignore>
                            </ignores>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- generate-test-sources -->

                    <!-- process-test-sources -->

                    <!-- generate-test-resources -->

                    <!-- process-test-resource -->

                    <!-- test-compile -->

                    <!-- process-test-classes -->

                    <!-- test -->

                    <!-- prepare-package -->

                    <!-- package -->
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>make-assembly</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>attached</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <!-- To depend on a test jar us something a dependency definition that looks like this <dependency> 
                            <groupId>GROUPID</groupId><artifactId>ARTIFACTID</artifactId> <version>VERSION</version> <type>test-jar</type> <scope>test</scope> 
                            </dependency> -->
                        <artifactId>maven-jar-plugin</artifactId>
                        <configuration>
                            <archive>
                                <manifest>
                                    <packageName>${project.groupId}</packageName>
                                    <mainClass>${project.groupId}.LibInfo</mainClass>
                                </manifest>
                                <manifestSections>
                                    <manifestSection>
                                        <name>Maven</name>
                                        <manifestEntries>
                                            <ArtifactGroup>${project.groupId}</ArtifactGroup>
                                            <ArtifactId>${project.artifactId}</ArtifactId>
                                            <ArtifactVersion>${project.version}</ArtifactVersion>
                                        </manifestEntries>
                                    </manifestSection>
                                    <manifestSection>
                                        <name>SCM</name>
                                        <manifestEntries>
                                            <Repository>${scm.repository}</Repository>
                                            <Path>${scm.path}</Path>
                                            <Revision>${scm.revision}</Revision>
                                            <UncommitedChanges>${scm.mixedRevisions}</UncommitedChanges>
                                        </manifestEntries>
                                    </manifestSection>
                                    <manifestSection>
                                        <name>Build</name>
                                        <manifestEntries>
                                            <OsName>${os.name}</OsName>
                                            <OsVersion>${os.version}</OsVersion>
                                            <OsArch>${os.arch}</OsArch>
                                            <JavaVendor>${java.vendor}</JavaVendor>
                                            <JavaVersion>${java.version}</JavaVersion>
                                            <BuildInstant>${project.build.timestamp}</BuildInstant>
                                            <Builder>${user.name}</Builder>
                                        </manifestEntries>
                                    </manifestSection>
                                </manifestSections>
                            </archive>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>test-jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- pre-integration-test -->

                    <!-- integration-test -->

                    <!-- post-integration-test -->

                    <!-- verify -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>sonar-maven-plugin</artifactId>
                        <version>${sonar.version}</version>
                        <configuration>
                            <sonarHostURL>${sonar.url}</sonarHostURL>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>sonar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- install -->

                    <!-- deploy -->

                </plugins>
            </build>
        </profile>

        <profile>
            <!-- Used to attach artifact sources to the deployment -->
            <id>attach-sources</id>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <!-- Used to generate javadoc and attach its artifacts to the deployment -->
            <id>attach-javadocs</id>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>${javadoc.version}</version>
                        <configuration>
                            <links>
                                <link>http://download.oracle.com/javase/7/docs/api</link>
                                <link>http://docs.oracle.com/javaee/5/api</link>
                                <link>http://www.slf4j.org/apidocs/</link>
                                <link>http://testng.org/javadocs</link>
                            </links>
                            <quiet>true</quiet>
                            <author>false</author>
                            <show>private</show>
                            <version>true</version>
                            <doctitle>${project.name} ${project.version} API</doctitle>
                            <windowtitle>${project.name} ${project.version} API</windowtitle>
                        </configuration>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                    <goal>test-jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        
        <profile><id>gpg</id><build><plugins>
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
</plugins></build></profile>

        <profile>
            <!-- Used to run various code health checks -->
            <id>code-check</id>
            <build>
                <plugins>
                    <!-- validate -->

                    <!-- initialize -->

                    <!-- generate-sources -->

                    <!-- process-sources -->

                    <!-- generate-resources -->

                    <!-- process-resources -->

                    <!-- compile -->

                    <!-- process-classes -->

                    <!-- generate-test-sources -->

                    <!-- process-test-sources -->

                    <!-- generate-test-resources -->

                    <!-- process-test-resource -->

                    <!-- test-compile -->

                    <!-- process-test-classes -->

                    <!-- test -->

                    <!-- prepare-package -->

                    <!-- package -->

                    <!-- pre-integration-test -->

                    <!-- integration-test -->

                    <!-- post-integration-test -->

                    <!-- verify -->
                    <plugin>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <version>${checkstyle.version}</version>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>cobertura-maven-plugin</artifactId>
                        <version>${cobertura.version}</version>
                        <configuration>
                            <check>
                                <branchRate>85</branchRate>
                                <lineRate>85</lineRate>
                                <haltOnFailure>true</haltOnFailure>
                                <totalBranchRate>85</totalBranchRate>
                                <totalLineRate>85</totalLineRate>
                                <packageLineRate>85</packageLineRate>
                                <packageBranchRate>85</packageBranchRate>
                            </check>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>clean</goal>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <!-- install -->

                    <!-- deploy -->

                </plugins>
            </build>
        </profile>

    </profiles>

    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>${checkstyle.version}</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>${cobertura.version}</version>
                <configuration>
                    <aggregate>true</aggregate>
                    <quiet>true</quiet>
                    <omitGplFiles>true</omitGplFiles>
                    <instrumentation>
                        <excludes>
                            <exclude>**/*Exception.class</exclude>
                            <!-- Exclude directive doesn't support \d so lets just assume no class will have more than 9 
                                anonymous inner classes -->
                            <exclude>**/*$1.class</exclude>
                            <exclude>**/*$2.class</exclude>
                            <exclude>**/*$3.class</exclude>
                            <exclude>**/*$4.class</exclude>
                            <exclude>**/*$5.class</exclude>
                            <exclude>**/*$6.class</exclude>
                            <exclude>**/*$7.class</exclude>
                            <exclude>**/*$8.class</exclude>
                            <exclude>**/*$9.class</exclude>
                        </excludes>
                    </instrumentation>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>${javadoc.version}</version>
            </plugin>
            <plugin>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>${jxr.version}</version>
                <configuration>
                    <!-- still does the right thing if the project isn't multi-module -->
                    <aggregate>true</aggregate>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>${project-info.version}</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>index</report>
                            <report>distribution-management</report>
                            <report>issue-tracking</report>
                            <report>scm</report>
                            <report>dependencies</report>
                            <report>dependency-management</report>
                            <report>plugins</report>
                            <report>plugin-management</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>

    <!-- Project Metadata -->
    <organization>
        <name>Covisint</name>
        <url>http://www.covisint.com/</url>
    </organization>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <scm>
        <url>http://github.com/Covisint</url>
        <connection>scm:git:git://github.com/Covisint.git</connection>
    </scm>

    <developers>
        <developer>
            <id>nextgen-dev</id>
            <name>NextGen Platform Development Team</name>
            <organization>NextGen Platform</organization>
            <url>http://github.com/Covisint</url>
            <roles>
                <role>owner</role>
                <role>developer</role>
            </roles>
            <email>devops@covisint.com</email>
            <timezone>-5</timezone>
        </developer>
    </developers>

</project>