Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<?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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>net.geant.ishare</groupId>
    <artifactId>ishare</artifactId>
    <packaging>pom</packaging>
    <version>2.0.1-SNAPSHOT</version>
    <name>${project.artifactId}</name>
    <description>I-SHARe Project</description>
    <distributionManagement>
        <repository>
            <id>GEANT Artifactory</id>
            <name>GEANT Artifactory ishare-release</name>
            <url>https://artifactory.software.geant.org/artifactory/ishare-release-local</url>
        </repository>
        <snapshotRepository>
            <id>GEANT Artifactory</id>
            <name>GEANT Artifactory ishare-snapshots</name>
            <url>https://artifactory.software.geant.org/artifactory/ishare-snapshot-local</url>
        </snapshotRepository>
    </distributionManagement>
</project>

...

Easiest way to use GN Artifactory as global maven repositories mirror is to define profile in your POM file. If you want always use GN Artifactory you can activate profile by default. See below example how to configure it.:
...
         <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <id>artifactory</id>
            <repositories>
                <repository>
                    <id>central</id>
                    <name>libs-release</name>
                    <url>https://artifactory.software.geant.org/artifactory/repo</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <name>plugins-release</name>
                    <url>https://artifactory.software.geant.net/artifactory/repo</url>
                </pluginRepository>
            </pluginRepositories>
        </profile>
...

...