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

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you 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.
-->

<settings>
  <mirrors>
    <mirror>
      <id>central-mirror</id>
      <mirrorOf>central</mirrorOf>
      <url>@baseurl@/repo-2</url>
    </mirror>
    <mirror>
      <id>central</id>
      <mirrorOf>maven.it</mirrorOf>
      <url>http://mirrors.ibiblio.org/pub/mirrors/maven/</url>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <id>it-defaults</id>
      <repositories>
        <!-- repo-1 has the right parent POM, repo-2 the unwanted one -->
        <repository>
          <id>maven-core-it-1</id>
          <url>@baseurl@/repo-1</url>
          <releases>
            <checksumPolicy>ignore</checksumPolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <repository>
          <id>maven-core-it-2</id>
          <url>@baseurl@/repo-2</url>
          <releases>
            <checksumPolicy>ignore</checksumPolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>maven.it</id>
          <name>Apache Maven Integration Testing Repository</name>
          <url>http://localhost</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>it-defaults</activeProfile>
  </activeProfiles>
</settings>
