<?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.gcube.tools</groupId>
        <artifactId>maven-parent</artifactId>
        <version>1.3.0</version>
    </parent>
    <groupId>org.gcube.distribution</groupId>
    <artifactId>maven-portal-bom</artifactId>
    <version>5.0.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <properties>
        <java.version>17</java.version>
        <maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>
        <gwtVersion>2.5.1</gwtVersion>
        <liferay.version>7.4</liferay.version>
        <repo.name>maven-portal-bom</repo.name>
        <jersey.version>3.1.5</jersey.version>
        <jaxws.version>4.0.3</jaxws.version>
        <jakarta-api.version>4.0.2</jakarta-api.version>
    </properties>

    <repositories>
        <!-- Liferay Public CDN Repository (Needed to resolve Liferay-specific Jakarta Portlet 4.0 artifacts) -->
        <repository>
            <id>liferay-public</id>
            <url>https://repository-cdn.liferay.com/nexus/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <scm>
        <connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${repo.name}.git</connection>
        <developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/${repo.name}.git</developerConnection>
        <url>https://code-repo.d4science.org/gCubeSystem/${repo.name}</url>
    </scm>

    <developers>
        <developer>
            <id>massimiliano.assante</id>
            <name>Massimiliano Assante</name>
            <email>massimiliano.assante@isti.cnr.it</email>
            <url>https://orcid.org/0000-0002-3761-1492</url>
            <organization>D4Science Infrastructure, Pisa, Italy</organization>
            <organizationUrl>https://www.d4science.org/</organizationUrl>
            <roles>
                <role>researcher</role>
                <role>architect</role>
                <role>maintainer</role>
                <role>developer</role>
            </roles>
            <timezone>Europe/Rome</timezone>
        </developer>
        <developer>
            <id>alfredo.oliviero</id>
            <name>Alfredo Oliviero</name>
            <email>alfredo.oliviero@isti.cnr.it</email>
            <url>https://orcid.org/0009-0007-3191-1025</url>
            <organization>D4Science Infrastructure, Pisa, Italy</organization>
            <organizationUrl>https://www.d4science.org/</organizationUrl>
            <roles>
                <role>researcher</role>
                <role>architect</role>
                <role>maintainer</role>
                <role>developer</role>
            </roles>
            <timezone>Europe/Rome</timezone>
        </developer>
    </developers>

    <dependencyManagement>
        <dependencies>
            <!-- BOMs -->
            <dependency>
                <groupId>org.gcube.distribution</groupId>
                <artifactId>gcube-bom</artifactId>
                <version>4.0.3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- VO & User Management (NOT in gcube-bom, versions defined in Portal BOM) -->
            <dependency>
                <groupId>org.gcube.vomanagement</groupId>
                <artifactId>portal-manager</artifactId>
                <version>3.0.0-SNAPSHOT</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.vomanagement</groupId>
                <artifactId>usermanagement</artifactId>
                <version>3.0.0-SNAPSHOT</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.gcube.dvos</groupId>
                <artifactId>usermanagement-core</artifactId>
                <version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <!-- gCube Core / Common (No version specified - strictly inherited from the imported gcube-bom) -->
            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-encryption</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.resources</groupId>
                <artifactId>common-gcore-resources</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-gcore-stubs</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-fw-clients</artifactId>
                <version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-scope</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.resources.discovery</groupId>
                <artifactId>ic-client</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.resources.discovery</groupId>
                <artifactId>discovery-client</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-generic-clients</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-clients</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>common-security</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common.security</groupId>
                <artifactId>gcube-secrets</artifactId>
                <scope>provided</scope>
            </dependency>

            <!-- gCube Common (Versions inherited from gcube-bom) -->
            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>authorization-client</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>common-authorization</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>keycloak-client</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>gx-jrs</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>common-jaxrs-client</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>d4science-iam-client</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-scope-maps</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-gcube-calls</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.data.publishing</groupId>
                <artifactId>document-store-lib</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.accounting</groupId>
                <artifactId>accounting-lib</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>storagehub-model</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>storagehub-client-library</artifactId>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>gx-http</artifactId>
                <scope>provided</scope>
            </dependency>

            <!-- gCube Portal Specific (Versions defined here since they are not in gcube-bom) -->
            <dependency>
                <groupId>org.gcube.core</groupId>
                <artifactId>common-configuration-scanner</artifactId>
                <version>[1.1.0,2.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.social-networking</groupId>
                <artifactId>social-service-client</artifactId>
                <version>[3.0.0-SNAPSHOT,4.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.social-networking</groupId>
                <artifactId>social-service-model</artifactId>
                <version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portal</groupId>
                <artifactId>social-library-stubs</artifactId>
                <version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portal.auth</groupId>
                <artifactId>portal-auth-library</artifactId>
                <version>[1.0.2,2.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common.portal</groupId>
                <artifactId>portal-manager</artifactId>
                <version>[2.4.2,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.contentmanagement</groupId>
                <artifactId>storage-manager-core</artifactId>
                <version>[5.0.0-SNAPSHOT,6.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>



            <dependency>
                <groupId>org.gcube.resources</groupId>
                <artifactId>registry-publisher</artifactId>
                <version>[1.3.2,2.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>event-publisher-library</artifactId>
                <version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portal</groupId>
                <artifactId>event-publisher-portal</artifactId>
                <version>[3.0.0-SNAPSHOT,4.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.common</groupId>
                <artifactId>oidc-library</artifactId>
                <version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portal</groupId>
                <artifactId>oidc-library-portal</artifactId>
                <version>[1.2.0,2.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portal</groupId>
                <artifactId>storagehub-icons-library</artifactId>
                <version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portal</groupId>
                <artifactId>notifications-common-library</artifactId>
                <version>[1.5.0,2.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portal</groupId>
                <artifactId>custom-portal-handler</artifactId>
                <version>[2.1.1,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.gcube.portlets.user</groupId>
                <artifactId>gcube-widgets</artifactId>
                <version>[2.3.0,3.0.0-SNAPSHOT)</version>
                <scope>provided</scope>
            </dependency>

            <!-- Jakarta APIs -->
            <dependency>
                <groupId>jakarta.ws.rs</groupId>
                <artifactId>jakarta.ws.rs-api</artifactId>
                <version>3.1.0</version>
            </dependency>

            <dependency>
                <groupId>com.liferay.jakarta.portlet</groupId>
                <artifactId>com.liferay.jakarta.portlet-api</artifactId>
                <version>4.0.0</version>
            </dependency>

            <dependency>
                <groupId>jakarta.servlet</groupId>
                <artifactId>jakarta.servlet-api</artifactId>
                <version>6.0.0</version>
            </dependency>

            <dependency>
                <groupId>jakarta.servlet.jsp</groupId>
                <artifactId>jakarta.servlet.jsp-api</artifactId>
                <version>3.1.1</version>
            </dependency>

            <dependency>
                <groupId>jakarta.servlet.jsp.jstl</groupId>
                <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>jakarta.inject</groupId>
                <artifactId>jakarta.inject-api</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>jakarta.validation</groupId>
                <artifactId>jakarta.validation-api</artifactId>
                <version>3.0.2</version>
            </dependency>

            <!-- Liferay -->
            <dependency>
                <groupId>com.liferay.portal</groupId>
                <artifactId>portal-service</artifactId>
                <version>${liferay.version}</version>
            </dependency>
            <dependency>
                <groupId>com.liferay.portal</groupId>
                <artifactId>util-java</artifactId>
                <version>${liferay.version}</version>
            </dependency>

            <!-- GWT -->
            <dependency>
                <groupId>com.github.gwtbootstrap</groupId>
                <artifactId>gwt-bootstrap</artifactId>
                <version>2.3.2.0</version>
            </dependency>
            <dependency>
                <groupId>com.google</groupId>
                <artifactId>gwt-jsonmaker</artifactId>
                <version>1.2.1</version>
            </dependency>
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-servlet</artifactId>
                <version>${gwtVersion}</version>
            </dependency>
            <dependency>
                <groupId>com.google.gwt</groupId>
                <artifactId>gwt-user</artifactId>
                <version>${gwtVersion}</version>
            </dependency>

            <dependency>
                <groupId>com.liferay.portal</groupId>
                <artifactId>release.portal.api</artifactId>
                <version>7.4.3.132</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>org.osgi.service.component.annotations</artifactId>
                <version>1.4.0</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>jakarta.portlet</groupId>
                <artifactId>portlet-api</artifactId>
                <version>3.0.1</version>
                <scope>provided</scope>
            </dependency>

            <!-- Third-party & Utilities -->
            <dependency>
                <groupId>aopalliance</groupId>
                <artifactId>aopalliance</artifactId>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>backport-util-concurrent</groupId>
                <artifactId>backport-util-concurrent</artifactId>
                <version>3.1</version>
            </dependency>
            <dependency>
                <groupId>commons-beanutils</groupId>
                <artifactId>commons-beanutils</artifactId>
                <version>1.6.1</version>
            </dependency>
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>1.15</version>
            </dependency>
            <dependency>
                <groupId>commons-collections</groupId>
                <artifactId>commons-collections</artifactId>
                <version>3.2.2</version>
            </dependency>
            <dependency>
                <groupId>commons-configuration</groupId>
                <artifactId>commons-configuration</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>commons-fileupload</groupId>
                <artifactId>commons-fileupload</artifactId>
                <version>1.3.1</version>
            </dependency>
            <dependency>
                <groupId>commons-httpclient</groupId>
                <artifactId>commons-httpclient</artifactId>
                <version>3.1</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>2.11.0</version>
            </dependency>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>2.6</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>1.1.3</version>
            </dependency>
            <dependency>
                <groupId>commons-net</groupId>
                <artifactId>commons-net</artifactId>
                <version>3.0.1</version>
            </dependency>

            <dependency>
                <groupId>com.google.code.guice</groupId>
                <artifactId>guice</artifactId>
                <version>3.0</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>1.3</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>3.12.0</version>
            </dependency>
            <dependency>
                <groupId>org.commonmark</groupId>
                <artifactId>commonmark</artifactId>
                <version>0.21.0</version>
            </dependency>

            <dependency>
                <groupId>org.gcube.contentmanagement</groupId>
                <artifactId>storage-manager-wrapper</artifactId>
                <version>[5.0.0-SNAPSHOT,6.0.0-SNAPSHOT)</version>
            </dependency>

            <dependency>
                <groupId>org.mongodb</groupId>
                <artifactId>mongo-java-driver</artifactId>
                <version>3.6.3</version>
            </dependency>

            <dependency>
                <groupId>org.apache.derby</groupId>
                <artifactId>derby</artifactId>
                <version>10.10.2.0</version>
            </dependency>
            <dependency>
                <groupId>org.apache.derby</groupId>
                <artifactId>derbytools</artifactId>
                <version>10.8.3.0</version>
            </dependency>

            <dependency>
                <groupId>net.sf.ehcache</groupId>
                <artifactId>ehcache-core</artifactId>
                <version>2.5.7</version>
            </dependency>

            <dependency>
                <groupId>com.google.code.gson</groupId>
                <artifactId>gson</artifactId>
                <version>2.10.1</version>
            </dependency>

            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>18.0</version>
            </dependency>

            <dependency>
                <groupId>org.sonatype.sisu.inject</groupId>
                <artifactId>guice-servlet</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>4.5.14</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>2.15.2</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>2.15.2</version>
            </dependency>

            <dependency>
                <groupId>com.auth0</groupId>
                <artifactId>java-jwt</artifactId>
                <version>4.4.0</version>
            </dependency>

            <dependency>
                <groupId>com.googlecode.json-simple</groupId>
                <artifactId>json-simple</artifactId>
                <version>1.1.1</version>
            </dependency>

            <dependency>
                <groupId>org.jsoup</groupId>
                <artifactId>jsoup</artifactId>
                <version>1.16.1</version>
            </dependency>

            <dependency>
                <groupId>com.sun.mail</groupId>
                <artifactId>javax.mail</artifactId>
                <version>1.5.6</version>
            </dependency>

            <dependency>
                <groupId>com.sun.xml.ws</groupId>
                <artifactId>jaxws-rt</artifactId>
                <version>2.3.0.2</version>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.17</version>
            </dependency>

            <dependency>
                <groupId>io.dropwizard.metrics</groupId>
                <artifactId>metrics-core</artifactId>
                <version>4.2.21</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>2.0.17</version>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-reload4j</artifactId>
                <version>2.0.17</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>net.spy</groupId>
                <artifactId>spymemcached</artifactId>
                <version>2.12.3</version>
            </dependency>

        </dependencies>

    </dependencyManagement>

    <!-- Unused or deprecated dependencies to be kept for future reference can be added under this dummy profile so they are ignored by default builds -->
    <profiles>
        <profile>
            <id>deprecated-reference-dont-active</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <dependencyManagement>
                <dependencies>
                    <dependency>
                        <groupId>org.gcube.applicationsupportlayer</groupId>
                        <artifactId>aslcore</artifactId>
                        <version>[5.1.2,6.0.0-SNAPSHOT)</version>
                        <scope>provided</scope>
                    </dependency>
                    <dependency>
                        <groupId>org.gcube.applicationsupportlayer</groupId>
                        <artifactId>aslsocial</artifactId>
                        <version>[1.7.3,2.0.0-SNAPSHOT)</version>
                        <scope>provided</scope>
                    </dependency>
                </dependencies>
            </dependencyManagement>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
