<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2012 Red Hat, Inc. and/or its affiliates.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ 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.
  -->

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

  <parent>
    <groupId>org.kie</groupId>
    <artifactId>kie-parent-with-dependencies</artifactId>
    <version>6.5.0.Beta1</version>
  </parent>

  <groupId>org.jbpm.dashboard</groupId>
  <artifactId>jbpm-dashboard</artifactId>
  <packaging>pom</packaging>

  <name>Dashboard Builder for jBPM</name>
  <inceptionYear>2013</inceptionYear>

  <scm>
    <connection>scm:git:git@github.com:droolsjbpm/jbpm-dashboard.git</connection>
    <developerConnection>scm:git:git@github.com:droolsjbpm/jbpm-dashboard.git</developerConnection>
    <url>https://github.com/droolsjbpm/jbpm-dashboard.git</url>
  </scm>

  <repositories>
    <repository>
      <id>jboss-public-repository-group</id>
      <name>JBoss Public Repository Group</name>
      <url>https://repository.jboss.org/nexus/content/groups/public/</url>
      <layout>default</layout>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
      </snapshots>
    </repository>
  </repositories>

  <modules>
    <module>jbpm-dashboard-modules</module>
  </modules>

  <properties>
    <version.org.codehaus.mojo.native2ascii>1.0-beta-1</version.org.codehaus.mojo.native2ascii>
  </properties>

  <dependencyManagement>
    <dependencies>

      <!-- Native to ASCII - UTF encoding for properties files.-->
      <dependency>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>native2ascii-maven-plugin</artifactId>
        <version>${version.org.codehaus.mojo.native2ascii}</version>
      </dependency>

    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>org.jboss.dashboard-builder</groupId>
      <artifactId>dashboard-displayer-core</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.jboss.dashboard-builder</groupId>
      <artifactId>dashboard-ui-core</artifactId>
      <classifier>classes</classifier>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <profiles>
    <profile>
      <id>fullProfile</id>
      <activation>
        <property>
          <name>full</name>
        </property>
      </activation>
      <modules>
        <module>jbpm-dashboard-distributions</module>
      </modules>
    </profile>
  </profiles>

  <build>
    <pluginManagement>
      <plugins>

        <!-- Disable version enforcement for native2ascii-maven-plugin, as version is not released. -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-enforcer-plugin</artifactId>
          <configuration>
            <rules>
              <requirePluginVersions>
                <unCheckedPlugins>
                  <unCheckedPlugin>org.codehaus.mojo:native2ascii-maven-plugin</unCheckedPlugin>
                </unCheckedPlugins>
              </requirePluginVersions>
            </rules>
          </configuration>
        </plugin>

      </plugins>
    </pluginManagement>

    <plugins>
      <!-- Zanata - translations -->
      <plugin>
        <groupId>org.zanata</groupId>
        <artifactId>zanata-maven-plugin</artifactId>
        <configuration>
          <includes>**/messages.properties</includes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
