<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
  ~ 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.
  -->

<component-set>
  <components>
    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-defaults</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>empty</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>empty</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-upgrade-09</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>upgrade-09</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>upgrade-09</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/src/test/conf/archiva-0.9.xml"
               config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-configuration</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>configured</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>configured</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <system/>
          <xml fileName="${basedir}/src/test/conf/repository-manager.xml"
               config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-autodetect-v1</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>autodetect-v1</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>autodetect-v1</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <system/>
          <xml fileName="${basedir}/target/test-autodetect-v1/archiva-user.xml" config-optional="true"
               config-name="org.apache.maven.archiva.user" 
               config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-archiva-v1</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>archiva-v1</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>archiva-v1</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <system/>
          <xml fileName="${basedir}/src/test/conf/archiva-v1.xml"
               config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-save</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>save</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>save</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/target/test/test-file.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-save-user</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>save-user</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
      <configuration>
        <userConfigFilename>${basedir}/target/test/test-file-user.xml</userConfigFilename>
      </configuration>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>save-user</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/target/test/test-file-user.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.user" config-at="org.apache.maven.archiva"/>
          <xml fileName="${basedir}/target/test/test-file.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-configuration-both</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>configuration-both</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>configuration-both</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/src/test/conf/conf-user.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.user" config-at="org.apache.maven.archiva"/>
          <xml fileName="${basedir}/src/test/conf/conf-base.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-read-saved</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>read-saved</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
      <configuration>
        <userConfigFilename>${basedir}/target/test/test-file.xml</userConfigFilename>
      </configuration>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>read-saved</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/target/test/test-file.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-cron-expressions</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>cron-expressions</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
      <configuration>
        <userConfigFilename>${basedir}/target/test/test-file.xml</userConfigFilename>
      </configuration>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>cron-expressions</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/target/test/test-file.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>
    
    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-remove-central</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>remove-central</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
      <configuration>
        <userConfigFilename>${basedir}/target/test/test-file.xml</userConfigFilename>
      </configuration>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>remove-central</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/target/test/test-file.xml" config-optional="true" config-forceCreate="true"
               config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-not-allowed-to-write-to-both</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>not-allowed-to-write-to-both</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
      <configuration>
        <user-config-filename>${basedir}/target/*intentionally:invalid*/.m2/archiva-user.xml</user-config-filename>
        <alt-config-filename>${basedir}/target/*intentionally:invalid*/conf/archiva.xml</alt-config-filename>
      </configuration>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>not-allowed-to-write-to-both</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/target/*intentionally:invalid*/.m2/archiva-user.xml" config-optional="true"
               config-name="org.apache.maven.archiva.user" config-at="org.apache.maven.archiva"/>
          <xml fileName="${basedir}/target/*intentionally:invalid*/conf/archiva.xml" config-optional="true"
               config-name="org.apache.maven.archiva.user" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>
    
    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>test-not-allowed-to-write-to-user</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>not-allowed-to-write-to-user</role-hint>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
          <field-name>prePolicies</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
          <field-name>postPolicies</field-name>
        </requirement>
      </requirements>
      <configuration>
        <user-config-filename>${basedir}/target/*intentionally:invalid*/.m2/archiva-user.xml</user-config-filename>
        <alt-config-filename>${basedir}/target/test-appserver-base/conf/archiva.xml</alt-config-filename>
      </configuration>
    </component>
    <component>
      <role>org.codehaus.plexus.registry.Registry</role>
      <role-hint>not-allowed-to-write-to-user</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <xml fileName="${basedir}/target/*intentionally:invalid*/.m2/archiva-user.xml" config-optional="true"
               config-name="org.apache.maven.archiva.user" config-at="org.apache.maven.archiva"/>
          <xml fileName="${basedir}/target/test-appserver-base/conf/archiva.xml" config-optional="true"
               config-name="org.apache.maven.archiva.user" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <component>
      <role>org.codehaus.plexus.cache.Cache</role>
      <role-hint>url-failures-cache</role-hint>
      <implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
      <description>URL Failure Cache</description>
      <configuration>
        <disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
        <disk-persistent>false</disk-persistent>
        <eternal>false</eternal>
        <max-elements-in-memory>1000</max-elements-in-memory>
        <memory-eviction-policy>LRU</memory-eviction-policy>
        <name>cache</name>
        <overflow-to-disk>false</overflow-to-disk>
        <!-- 45 minutes = 2700 seconds -->
        <time-to-idle-seconds>2700</time-to-idle-seconds>
        <!-- 30 minutes = 1800 seconds  -->
        <time-to-live-seconds>1800</time-to-live-seconds>
      </configuration>
    </component>    
  </components>
</component-set>
