<settings>
    <profiles>
        <!-- MTVI profile (downloads) -->
        <profile>
            <id>mtvi</id>
            <repositories>
                <repository>
                    <id>mtvi-public</id>
                    <url>https://nexus.mtvi.com/nexus/repository/public/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>mtvi-releases</id>
                    <url>https://nexus.mtvi.com/nexus/content/groups/public/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>mtvi-snapshots</id>
                    <url>https://nexus.mtvi.com/nexus/content/groups/public-snapshots/</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>

        <profile>
            <id>sonar</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <sonar.host.url>${SONAR_HOST_URL}</sonar.host.url>
                <sonar.token>${sonar_login}</sonar.token>
            </properties>
        </profile>
    </profiles>

    <activeProfiles>
        <activeProfile>mtvi</activeProfile>
    </activeProfiles>

    <pluginGroups>
        <pluginGroup>org.sonatype.plugins</pluginGroup>
        <pluginGroup>org.sonarsource.scanner.maven</pluginGroup>
    </pluginGroups>

    <servers>
        <!-- MTVI Servers -->
        <server>
            <id>mtvi-public</id>
            <username>${mtvi_nexus_username}</username>
            <password>${mtvi_nexus_password}</password>
        </server>
        <server>
            <id>mtvi-releases</id>
            <username>${mtvi_nexus_username}</username>
            <password>${mtvi_nexus_password}</password>
        </server>
        <server>
            <id>mtvi-snapshots</id>
            <username>${mtvi_nexus_username}</username>
            <password>${mtvi_nexus_password}</password>
        </server>

        <server>
            <id>mtvi-deploy</id>
            <username>${mtvi_nexus_username}</username>
            <password>${mtvi_nexus_password}</password>
        </server>
    </servers>
</settings>