<settings
    xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

    <servers>
        <server>
            <id>sonatype-oss-nexus-snapshots</id>
            <username>${env.SONATYPE_USER}</username>
            <password>${env.SONATYPE_PASS}</password>
        </server>
    </servers>
</settings>
<settings
    xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

    <servers>
        <server>
            <id>sonatype-oss-nexus-snapshots</id>
            <username>${env.SONATYPE_USER}</username>
            <password>${env.SONATYPE_PASS}</password>
        </server>
    </servers>

    <profiles>
        <profile>
            <id>enable-sonatype-repo</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>sonatype-snapshots</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                </repository>
            </repositories>
        </profile>
    </profiles>
</settings>
Enable deps resolving from Sonatype snapshots
Enable deps resolving from Sonatype snapshots

On Travis.
