<?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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.camunda</groupId>
    <artifactId>camunda-release-parent</artifactId>
    <version>3.7</version>
    <!-- do not remove empty tag - http://jira.codehaus.org/browse/MNG-4687 -->
    <relativePath />
  </parent>

  <artifactId>camunda-bpm-release-parent</artifactId>
  <version>2.0.0</version>
  <packaging>pom</packaging>
  <name>Camunda BPM - Release Parent Pom</name>

  <description>
    This pom defines the required plugins and profiles to allow a camunda bpm release build.
  </description>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <!-- Avoid the message "[WARNING] Using platform encoding (UTF-8 actually) ... also for the failsafe plugin -->
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

    <!-- we use java 1.8 for our projects -->
    <version.java>1.8</version.java>

    <plugin.version.license>3.0</plugin.version.license>

    <license.inlineHeader>
Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information regarding copyright
ownership. Camunda licenses this file to you under the Apache License,
Version 2.0; you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.</license.inlineHeader>
  </properties>

  <build>
    <pluginManagement>
      <plugins>
        <!-- license plugin -->
        <plugin>
          <groupId>com.mycila</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <version>${plugin.version.license}</version>
          <configuration>
            <skipExistingHeaders>false</skipExistingHeaders>
            <includes>
              <include>**/*.java</include>
              <include>**/*.sql</include>
              <include>**/main/**/engine/**/*.xml</include>
              <include>**/BpmPlatform.xsd</include>
              <include>**/ProcessApplication.xsd</include>
            </includes>
            <excludes>
              <exclude>**/org/camunda/bpm/engine/impl/calendar/CronExpression.java</exclude>
              <exclude>**/org/camunda/bpm/engine/impl/juel/*.java</exclude>
              <exclude>**/org/camunda/bpm/engine/impl/javax/el/*.java</exclude>
              <exclude>**/org/camunda/bpm/engine/spring/components/**/*.java</exclude>
              <exclude>**/org/camunda/bpm/engine/spring/annotations/*.java</exclude>
              <exclude>**/org/camunda/bpm/engine/impl/digest/_apacheCommonsCodec/*.java</exclude>
              <exclude>**/org/camunda/bpm/licensecheck/_apacheCommonsCodec/*.java</exclude>
              <exclude>**/node_modules/**</exclude>
            </excludes>
            <mapping>
              <java>SLASHSTAR_STYLE</java>
            </mapping>
          </configuration>
          <executions>
            <execution>
              <id>add-license-header</id>
              <phase>compile</phase>
              <goals>
                <goal>format</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <configuration>
            <stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

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

    <organization>
      <name>Camunda Services GmbH</name>
      <url>http://www.camunda.com</url>
    </organization>

    <url>http://www.camunda.org</url>

    <developers>
      <developer>
        <id>camunda.org</id>
        <name>camunda BPM Community</name>
        <organization>camunda.org</organization>
        <organizationUrl>http://camunda.org</organizationUrl>
      </developer>
    </developers>

    <scm>
      <url>https://github.com/camunda/camunda-bpm-release-parent</url>
      <connection>scm:git:git@github.com:camunda/camunda-bpm-release-parent.git</connection>
      <developerConnection>scm:git:git@github.com:camunda/camunda-bpm-release-parent.git</developerConnection>
      <tag>2.0.0</tag>
    </scm>

    <issueManagement>
      <system>Jira</system>
      <url>https://app.camunda.com/jira/browse/CAM/</url>
    </issueManagement>

</project>
