Skip to content

Example settings-override.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
          xmlns="http://maven.apache.org/SETTINGS/1.1.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <profiles>
        <mirror>
            <id>codelogic</id>
            <mirrorOf>codelogic</mirrorOf>
            <url>https://localhost/codelogic/server</url>
        </mirror>

        <mirror>
            <id>central</id>
            <mirrorOf>central</mirrorOf>
            <url>https://repo.maven.apache.org/maven2/</url>
        </mirror>

        <profile>
            <id>artifactory</id>
            <properties>
                <codelogic.url>https://localhost/codelogic/server</codelogic.url>
                <codelogic.oauth.username>ffff-ffff-ffff-ffff-ffff</codelogic.oauth.username>
                <codelogic.oauth.password>ffff-ffff-ffff-ffff-ffff</codelogic.oauth.password>
                <codelogic.batchSize>2000</codelogic.batchSize>
                <codelogic.methodInvokesScanningEnabled>true</codelogic.methodInvokesScanningEnabled>
                <codelogic.methodInvokesScanningPackageIncludeList>com.yourorg.
                </codelogic.methodInvokesScanningPackageIncludeList>
            </properties>
            <repositories>
                <repository>
                    <id>codelogic</id>
                    <name>codelogic</name>
                    <url>https://localhost/codelogic/server/packages/maven/libs-release</url>
                </repository>
                <repository>
                    <id>central</id>
                    <name>libs-release</name>
                    <url>https://repo.maven.apache.org/maven2/</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>codelogic</id>
                    <name>codelogic</name>
                    <url>https://localhost/codelogic/server/packages/maven/libs-release</url>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
</settings>