<?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.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://artifactory.jfrog.org/xsd/1.3.0"
        xsi:schemaLocation="http://artifactory.jfrog.org/xsd/1.3.0
        http://www.jfrog.org/xsd/artifactory-v1_3_0.xsd">
    <!--
    enable/disable anonymous downloads
    -->
    <!--<anonAccessEnabled>false</anonAccessEnabled>-->
    <!--security>
        <ldapSettings>
            <authenticationMethod>bind-anonymous</authenticationMethod>
            <ldapUrl>ldap://mydomain:389/dc=mycompany,dc=com</ldapUrl>
            <userDnPattern>uid={0},ou=People</userDnPattern>
            <managerDn></managerDn>
            <managerPassword></managerPassword>
            <searchAuthPasswordAttributeName>userPassword</searchAuthPasswordAttributeName>
        </ldapSettings>
    </security-->
    <backup>
        <!--
        alternative backup dir
        -->
        <!--<dir></dir>-->
        <!--
        backup every 12 hours
        -->
        <cronExp>0 0 /12 * * ?</cronExp>
        <!--
        keep backups for a week.
        Set to 0 in order to always backup to a "current" dir (useful for incremental FS backups).
        -->
        <retentionPeriodHours>168</retentionPeriodHours>
        <!--
        exclude certain repositories from being backed up
        -->
        <excludedRepositories>
            <repositoryRef>repo1</repositoryRef>
            <repositoryRef>codehaus-snapshots</repositoryRef>
            <repositoryRef>java.net.m2</repositoryRef>
            <repositoryRef>java.net.m1</repositoryRef>
        </excludedRepositories>
    </backup>
    <!-- The cron definition to control the activation of the m2 eclipse indexer. Default every full hour. -->
    <indexer>
        <cronExp>0 0/1 * * * ?</cronExp>
    </indexer>
    <localRepositories>
        <localRepository>
            <key>private-internal-repository</key>
            <description>Private internal repository</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>true</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>third-party</key>
            <description>3rd party jars added manually</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>libs-releases-local</key>
            <description>Local repository for in-house libraries</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>libs-snapshots-local</key>
            <description>Local repository for in-house snapshots</description>
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>plugins-releases-local</key>
            <description>Local repository for plugins</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>plugins-snapshots-local</key>
            <description>Local repository for plugins snapshots</description>
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>ext-releases-local</key>
            <description>Local repository for third party libraries</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>ext-snapshots-local</key>
            <description>Local repository for third party snapshots</description>
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
        </localRepository>

        <!--
        A sample local repository with all possible settings
        -->
        <!--
        <localRepository>
            <key>local-sample</key>
            <description>Sample local repository</description>
            <blackedOut>false</blackedOut>
            <handleReleases>true</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            -->
            <!--
            maximum number of unique stnapshot to keep
            -->
            <!--
            <maxUniqueSnapshots>3</maxUniqueSnapshots>
            <includesPattern>*/**</includesPattern>
            <excludesPattern>com/mycompany/**</excludesPattern>
            -->
            <!--
            centrally control unique snapshots behavior (non-unique|unique|deployer)
            -->
            <!--
            <snapshotVersionBehavior>non-unique</snapshotVersionBehavior>
        </localRepository>
        -->
    </localRepositories>

    <remoteRepositories>
        <remoteRepository>
            <key>repo1</key>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
            <url>http://repo1.maven.org/maven2</url>
        </remoteRepository>
        <remoteRepository>
            <key>codehaus-repository</key>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
            <url>http://repository.codehaus.org</url>
        </remoteRepository>
        <remoteRepository>
            <key>codehaus-snapshots</key>
            <blackedOut>true</blackedOut>
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
            <url>http://snapshots.repository.codehaus.org</url>
        </remoteRepository>
	
        <remoteRepository>
            <key>java.net.m2</key>
            <description>java.net Maven2 Format</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
            <url>http://download.java.net/maven/2</url>
        </remoteRepository>
        <remoteRepository>
            <key>java.net.m1</key>
            <description>java.net Maven1 Format</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            <type>maven1</type>
            <url>http://download.java.net/maven/1</url>
        </remoteRepository>
        <remoteRepository>
            <key>jboss</key>
            <description>JBoss Maven2 repository</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
            <excludesPattern>org/apache/**</excludesPattern>
            <url>http://repository.jboss.org/maven2</url>
        </remoteRepository>
        <remoteRepository>
            <key>jboss-snapshots</key>
            <description>snapshots.jboss.org Maven2</description>
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
            <url>http://snapshots.jboss.org/maven2</url>
        </remoteRepository>
        <remoteRepository>
	    <key>codehausSnapshots</key>          
	    <description>Codehaus Snapshots</description>          
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
	    <url>http://snapshots.maven.codehaus.org/maven2</url>          
        </remoteRepository>
        <remoteRepository>
	    <key>mavenSnapshots</key>          
	    <description>Maven Snapshots</description>          
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
	    <url>http://people.apache.org/repo/m2-snapshot-repository/</url>          
        </remoteRepository>
        <!--
        <remoteRepository>
            <key>codehaus</key>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
            <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern>
            <url>http://dist.codehaus.org</url>
        </remoteRepository>
        <remoteRepository>
            <key>ibiblio</key>
            <excludesPattern>org/artifactory/**</excludesPattern>
            <url>http://www.ibiblio.org/maven2</url>
        </remoteRepository>
        <remoteRepository>
            <key>apache-m2-snapshots</key>
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            <proxyRef>unused-proxy</proxyRef>
        </remoteRepository>
        -->

        <!-- A sample remote repository with all possible tunings -->
        <!--
        <remoteRepository>
        <key>remote-sample</key>
        <description>Sample remote repository</description>
        -->
        <!--
        blok the usage of this repository
        -->
        <!--<blackedOut>false</blackedOut>-->
        <!--
        maximum number of unique stnapshot to keep
        -->
        <!--<maxUniqueSnapshots>3</maxUniqueSnapshots>-->
        <!--<includesPattern>*/**</includesPattern>-->
        <!--<excludesPattern>com/mycompany/**</excludesPattern>-->
        <!--<url>http://maven.repo/repository</url>-->
        <!--
        put offline to use only the cache and not send remote requests
        -->
        <!--<offline>false</offline>-->
        <!--<hardFail>true</hardFail>-->
        <!--
        cache remotely retrieved artifacts (you'd want 'true')
        -->
        <!--<storeArtifactsLocally>true</storeArtifactsLocally>-->
        <!--
        number of seconds to cache artifact lookup results
        -->
        <!--<retrievalCachePeriodSecs>43200</retrievalCachePeriodSecs>-->
        <!--
        number of seconds to cache artifact retrieval failures (normally communication errors)
        -->
        <!--<failedRetrievalCachePeriodSecs>30</failedRetrievalCachePeriodSecs>-->
        <!--
        number of seconds to remember artifact retrieval misses (artifact not found)
        -->
        <!--<missedRetrievalCachePeriodSecs>43200</missedRetrievalCachePeriodSecs>-->
        <!--
        ttp authentication details
        -->
        <!--<username>un</username>-->
        <!--<password>pw</password>-->
        <!--
        network timeout for both connection establishment failures and unanswered requests
        -->
        <!--<socketTimeoutMillis>2000</socketTimeoutMillis>-->
        <!--
        proxy reference
        -->
        <!--<proxyRef>unused-proxy</proxyRef>-->
        <!--</remoteRepository>-->
    </remoteRepositories>

    <virtualRepositories>
        <!-- This repositoy will be available at the url:
        http://<host>:<port>/artifactory/snapshots-only/
        (note the trailing slash!)
        -->
        <virtualRepository>
            <key>remote-repos</key>
            <artifactoryRequestsCanRetrieveRemoteArtifacts>true</artifactoryRequestsCanRetrieveRemoteArtifacts>
            <repositories>
                <repositoryRef>java.net.m2</repositoryRef>
                <repositoryRef>java.net.m1</repositoryRef>
                <repositoryRef>repo1</repositoryRef>
            </repositories>
        </virtualRepository>
        <virtualRepository>
            <key>libs-releases</key>
            <repositories>
                <repositoryRef>libs-releases-local</repositoryRef>
                <repositoryRef>ext-releases-local</repositoryRef>
                <repositoryRef>remote-repos</repositoryRef>
            </repositories>
        </virtualRepository>
        <virtualRepository>
            <key>plugins-releases</key>
            <repositories>
                <repositoryRef>plugins-releases-local</repositoryRef>
                <repositoryRef>ext-releases-local</repositoryRef>
                <repositoryRef>remote-repos</repositoryRef>
            </repositories>
        </virtualRepository>
        <virtualRepository>
            <key>libs-snapshots</key>
            <repositories>
                <repositoryRef>libs-snapshots-local</repositoryRef>
                <repositoryRef>ext-snapshots-local</repositoryRef>
                <repositoryRef>remote-repos</repositoryRef>
                <repositoryRef>codehaus-snapshots</repositoryRef>
            </repositories>
        </virtualRepository>
        <virtualRepository>
            <key>plugins-snapshots</key>
            <repositories>
                <repositoryRef>plugins-snapshots-local</repositoryRef>
                <repositoryRef>ext-snapshots-local</repositoryRef>
                <repositoryRef>remote-repos</repositoryRef>
                <repositoryRef>codehaus-snapshots</repositoryRef>
            </repositories>
        </virtualRepository>
    </virtualRepositories>

    <!--
        <proxies>
            <proxy>
                <key>unused-proxy</key>
                <host>host</host>
                <port>8080</port>
                <username>un</username>
                <password>pw</password>
                <domain>mydomain</domain>
            </proxy>
        </proxies>
    -->

</config>
