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

  <!-- ************************************************************* -->
  <!-- *** POM Relationships *************************************** -->
  <!-- ************************************************************* -->

  <parent>
    <groupId>org.nuiton.js</groupId>
    <artifactId>nuiton-js</artifactId>
    <version>1.0</version>
  </parent>

  <artifactId>nuiton-js-lib</artifactId>
  <packaging>pom</packaging>
  <name>Nuiton JS :: Libraries</name>
  <description>Nuiton JS Librairies modules</description>

  <properties>
    <source.skip>true</source.skip>
    <!-- templates for announcement -->
    <redmine.templateDirectory>
      http://maven-site.nuiton.org/nuiton-js/nuiton-js-lib/announcement
    </redmine.templateDirectory>
  </properties>

  <profiles>

    <!-- launch this profile after a release:perform on target/checkout -->
    <profile>
      <id>redmine-build-release-profile</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <properties>

        <!-- do not generate changes from redmine -->
        <!--<redmine.skipGenerateChanges>true</redmine.skipGenerateChanges>-->

        <redmine.versionId>${project.parent.version}</redmine.versionId>

      </properties>

    </profile>
    <!-- launch this profile after a release:perform on target/checkout -->
    <profile>
      <id>redmine-pre-release-profile</id>
      <activation>
        <property>
          <name>performRedminePreRelease</name>
          <value>true</value>
        </property>
      </activation>
      <properties>
        <!-- do not publish attachments in redmine -->
        <redmine.skipCollectReleaseAttachments>
          true
        </redmine.skipCollectReleaseAttachments>

        <redmine.versionId>${project.parent.version}</redmine.versionId>

      </properties>
    </profile>

    <!-- perform a redmine release after a successfull release -->
    <profile>
      <id>redmine-release-profile</id>
      <activation>
        <property>
          <name>performRedmineRelease</name>
          <value>true</value>
        </property>
      </activation>

      <properties>

        <redmine.versionId>${project.parent.version}</redmine.versionId>

        <!-- do not update redmine version -->
        <redmine.skipUpdateVersion>true</redmine.skipUpdateVersion>
      </properties>

    </profile>

    <profile>
      <id>redmine-next-version-profile</id>
      <activation>
        <property>
          <name>redmineNextVersion</name>
          <value>true</value>
        </property>
      </activation>

      <properties>

        <!-- do not create redmine next version -->
        <redmine.skipNextVersion>true</redmine.skipNextVersion>
      </properties>

    </profile>

  </profiles>
</project>
