<?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>
  <groupId>org.quartz-scheduler</groupId>
  <artifactId>quartz-parent</artifactId>
  <version>1.8.7-atlassian-2</version>
  <packaging>pom</packaging>
  <name>Quartz Parent POM</name>

  <description>
    Quartz is a full-featured, open source job scheduling system that
    can be integrated with, or used along side virtually any J2EE or
    J2SE application
  </description>

  <url>http://quartz-scheduler.org/</url>

  <scm>
    <connection>scm:git:git@github.com:atlassian-forks/quartz.git</connection>
    <developerConnection>scm:git:git@github.com:atlassian-forks/quartz.git</developerConnection>
    <url>https://github.com/atlassian-forks/quartz</url>
    <tag>quartz-parent-1.8.7-atlassian-2</tag>
  </scm>

  <licenses>
    <license>
      <name>Apache 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
    </license>
  </licenses>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.quartz-scheduler</groupId>
        <artifactId>quartz</artifactId>
        <version>${project.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <modules>
    <module>quartz</module>
    <module>quartz-jboss</module>
    <module>examples</module>
  </modules>

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5.3</version>
        <configuration>
          <remoteTagging>true</remoteTagging>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <updateBranchVersions>true</updateBranchVersions>
          <releaseProfiles>release</releaseProfiles>
          <useReleaseProfile>true</useReleaseProfile>
          <preparationGoals>clean install</preparationGoals>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
	    <artifactId>maven-surefire-plugin</artifactId>
	    <version>2.6</version>
	    <configuration>
	      <forkMode>always</forkMode>
          <systemProperties>
            <property>
              <!-- skip update check in tests -->
              <name>org.terracotta.quartz.skipUpdateCheck</name>
              <value>true</value>
            </property>
          </systemProperties>
		</configuration>
	  </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.3</version>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>checkstyle</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <skip>true</skip>
          <configLocation>${basedir}/../src/checkstyle/checkstyle_checks.xml</configLocation>
          <suppressionsLocation>${basedir}/../src/checkstyle/suppressions.xml</suppressionsLocation>
          <headerLocation>${basedir}/../src/checkstyle/src-header.txt</headerLocation>
          <enableRSS>false</enableRSS>
          <linkXRef>false</linkXRef>
          <consoleOutput>true</consoleOutput>
          <failsOnError>true</failsOnError>
          <failOnViolation>true</failOnViolation>
          <includeTestSourceDirectory>false</includeTestSourceDirectory>
          <enableRulesSummary>true</enableRulesSummary>
        </configuration>
      </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>2.3.2</version>
          <configuration>
            <findbugsXmlOutput>true</findbugsXmlOutput>
            <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
            <xmlOutput>true</xmlOutput>
            <excludeFilterFile>${basedir}/../src/findbugs/excludeFilter.xml</excludeFilterFile>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-pmd-plugin</artifactId>
          <version>2.5</version>
          <configuration>
            <aggregate>true</aggregate>
            <targetJdk>1.8</targetJdk>
          </configuration>
        </plugin>
    </plugins>
  </build>

  <profiles>

<!--    <profile>-->
<!--      &lt;!&ndash; Profile to include the quartz-oracle module in the build. &ndash;&gt;-->
<!--      <id>oracle</id>-->
<!--      <modules>-->
<!--        <module>quartz-oracle</module>-->
<!--      </modules>-->
<!--    </profile>-->
    <profile>
      <!-- Profile to include the quartz-weblogic and quartz-oracle modules in the build -->
      <id>weblogic</id>
      <modules>
        <!-- quartz-weblogic depends on quartz-oracle so enable that module too -->
        <module>quartz-oracle</module>
        <module>quartz-weblogic</module>
      </modules>
    </profile>

    <profile>
      <!-- Profile to include the quartz-commonj module in the build -->
      <id>commonj</id>
      <modules>
        <module>quartz-commonj</module>
      </modules>
    </profile>

    <profile>
      <!-- Profile to include the quartz-all module in the build. -->
      <id>all</id>
      <modules>
        <module>quartz-all</module>
      </modules>
    </profile>

  </profiles>

  <distributionManagement>
    <repository>
      <id>atlassian-3rdparty</id>
      <url>https://packages.atlassian.com/maven/3rdparty</url>
    </repository>
    <snapshotRepository>
      <id>atlassian-3rdparty-snapshot</id>
      <url>https://packages.atlassian.com/maven/3rdparty-snapshot</url>
    </snapshotRepository>
  </distributionManagement>

</project>
