<?xml version="1.0" encoding="UTF-8"?>
<!--

  Copyright (C) 2022 eXo Platform SAS

   This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with this program.  If not, see <gnu.org/licenses>.

-->
<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>
    <artifactId>maven-exo-parent-pom</artifactId>
    <groupId>org.exoplatform</groupId>
    <version>28</version>
    <relativePath />
  </parent>
  <groupId>org.exoplatform.platform.distributions</groupId>
  <artifactId>plf-public-distributions</artifactId>
  <version>7.1.2</version>
  <packaging>pom</packaging>
  <name>eXo PLF:: Platform Community Distributions</name>
  <modules>
    <module>services</module>
    <module>plf-community-webapps</module>
    <module>packaging</module>
  </modules>
  <scm>
    <connection>scm:git:git://github.com/exoplatform/platform-public-distributions.git</connection>
    <developerConnection>scm:git:git@github.com:exoplatform/platform-public-distributions.git</developerConnection>
    <tag>7.1.2</tag>
    <url>http://fisheye.exoplatform.org/browse/projects/platform-public-distributions</url>
  </scm>
  <properties>
    <!-- ************** -->
    <!-- Dependencies   -->
    <!-- ************** -->
    <!-- Subscription agreement -->
    <subscription-agreement.version>1.3.0</subscription-agreement.version>
    <!-- ************** -->
    <!-- Public distribution   -->
    <!-- ************** -->
    <io.meeds.distribution.version>7.1.2-exo</io.meeds.distribution.version>
    <!-- ************** -->
    <!-- Add-ons for Entreprise packaging   -->
    <!-- ************** -->
    <addon.exo.jcr.id>exo-jcr</addon.exo.jcr.id>
    <addon.exo.jcr.version>7.1.2</addon.exo.jcr.version>
    <addon.exo.ecms.id>exo-ecms</addon.exo.ecms.id>
    <addon.exo.ecms.version>7.1.2</addon.exo.ecms.version>
    <addon.meeds.tasks.id>meeds-tasks</addon.meeds.tasks.id>
    <addon.meeds.tasks.version>7.1.2-exo</addon.meeds.tasks.version>
    <addon.exo.web-conferencing.id>exo-web-conferencing</addon.exo.web-conferencing.id>
    <addon.exo.web-conferencing.version>7.1.2</addon.exo.web-conferencing.version>
    <addon.meeds.analytics.id>meeds-analytics</addon.meeds.analytics.id>
    <addon.meeds.analytics.version>7.1.2-exo</addon.meeds.analytics.version>
    <addon.exo.agenda.id>exo-agenda</addon.exo.agenda.id>
    <addon.exo.agenda.version>7.1.2</addon.exo.agenda.version>
    <addon.exo.digital-workplace.id>exo-digital-workplace</addon.exo.digital-workplace.id>
    <addon.exo.digital-workplace.version>7.1.2</addon.exo.digital-workplace.version>
    <addon.exo.data-upgrade.id>exo-data-upgrade</addon.exo.data-upgrade.id>
    <addon.exo.data-upgrade.version>7.1.2</addon.exo.data-upgrade.version>
    <addon.exo.onlyoffice.id>exo-onlyoffice</addon.exo.onlyoffice.id>
    <addon.exo.onlyoffice.version>7.1.2</addon.exo.onlyoffice.version>
    <addon.exo.documents.id>exo-documents</addon.exo.documents.id>
    <addon.exo.documents.version>7.1.2</addon.exo.documents.version>
    <addon.meeds.push-notifications.id>meeds-push-notifications</addon.meeds.push-notifications.id>
    <addon.meeds.push-notifications.version>7.1.2-exo</addon.meeds.push-notifications.version>
    <addon.exo.processes.id>exo-processes</addon.exo.processes.id>
    <addon.exo.processes.version>7.1.2</addon.exo.processes.version>
    <addon.exo.external-visio-connector.id>exo-external-visio-connector</addon.exo.external-visio-connector.id>
    <addon.exo.external-visio-connector.version>7.1.2</addon.exo.external-visio-connector.version>

    <!-- Add-on manager extension to use (empty for Unix, .bat for Windows) -->

    <addon.jdbc.mysql.id>exo-jdbc-driver-mysql</addon.jdbc.mysql.id>
    <addon.jdbc.mysql.version>2.1.0</addon.jdbc.mysql.version>
    <addon.jdbc.postgresql.id>exo-jdbc-driver-postgresql</addon.jdbc.postgresql.id>
    <addon.jdbc.postgresql.version>2.5.0</addon.jdbc.postgresql.version>

    <addon.manager.extension />
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.meeds.distribution</groupId>
        <artifactId>plf-community-tomcat-standalone</artifactId>
        <version>${io.meeds.distribution.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.addons.digital-workplace</groupId>
        <artifactId>digital-workplace-packaging</artifactId>
        <version>${addon.exo.digital-workplace.version}</version>
        <scope>provided</scope>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.agenda</groupId>
        <artifactId>agenda-packaging</artifactId>
        <version>${addon.exo.agenda.version}</version>
        <scope>provided</scope>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.addons.web-conferencing</groupId>
        <artifactId>web-conferencing-packaging</artifactId>
        <version>${addon.exo.web-conferencing.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.jcr</groupId>
        <artifactId>jcr-packaging</artifactId>
        <version>${addon.exo.jcr.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.ecms</groupId>
        <artifactId>ecms-packaging</artifactId>
        <version>${addon.exo.ecms.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.addons.upgrade</groupId>
        <artifactId>data-upgrade-packaging</artifactId>
        <version>${addon.exo.data-upgrade.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.addons.onlyoffice</groupId>
        <artifactId>exo-onlyoffice-editor-packaging</artifactId>
        <version>${addon.exo.onlyoffice.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.documents</groupId>
        <artifactId>documents-packaging</artifactId>
        <version>${addon.exo.documents.version}</version>
        <scope>provided</scope>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>io.meeds.push-notifications</groupId>
        <artifactId>push-notifications-packaging</artifactId>
        <version>${addon.meeds.push-notifications.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.processes</groupId>
        <artifactId>processes-packaging</artifactId>
        <version>${addon.exo.processes.version}</version>
        <scope>provided</scope>
        <type>zip</type>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.addons.external-visio-connector</groupId>
        <artifactId>external-visio-connector-packaging</artifactId>
        <version>${addon.exo.external-visio-connector.version}</version>
        <scope>provided</scope>
        <type>zip</type>
      </dependency>
      <!-- jdbc drivers -->
      <dependency>
        <groupId>org.exoplatform.addons.exo-jdbc-driver-mysql</groupId>
        <artifactId>exo-jdbc-driver-mysql</artifactId>
        <version>${addon.jdbc.mysql.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.addons.exo-jdbc-driver-postgresql</groupId>
        <artifactId>exo-jdbc-driver-postgresql</artifactId>
        <version>${addon.jdbc.postgresql.version}</version>
        <type>zip</type>
        <scope>provided</scope>
      </dependency>

      <!-- Our modules -->
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>platform-community-edition-service</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>platform-community-tomcat-standalone</artifactId>
        <version>${project.version}</version>
        <type>pom</type>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>platform-community-tomcat-standalone</artifactId>
        <version>${project.version}</version>
        <type>zip</type>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <pluginManagement>
      <plugins>
        <!-- Required to not break gmaven usage for -Pfix-headers by example-->
        <plugin>
          <groupId>org.codehaus.gmaven</groupId>
          <artifactId>gmaven-plugin</artifactId>
          <configuration>
            <providerSelection>2.0</providerSelection>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <configuration>
            <appendAssemblyId>false</appendAssemblyId>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <profiles>
    <profile>
      <id>project-repositories</id>
      <activation>
        <property>
          <name>!skip-project-repositories</name>
        </property>
      </activation>
      <repositories>
        <repository>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <id>repository.exoplatform.org</id>
          <url>https://repository.exoplatform.org/public</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <id>repository.exoplatform.org</id>
          <url>https://repository.exoplatform.org/public</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</project>
