<?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>
      <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/resources/scanner-archiva.xml"
               config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
        </properties>
      </configuration>
    </component>

    <!-- Known Content Consumers -->
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>update-db-artifact</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>update-db-artifact</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>create-missing-checksums</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>create-missing-checksums</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>update-db-repository-metadata</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>update-db-repository-metadata</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>validate-checksum</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>validate-checksum</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>index-content</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>index-content</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>auto-remove</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>auto-remove</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>auto-rename</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>auto-rename</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
      <role-hint>available-but-unselected</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.SampleKnownConsumer</implementation>
      <configuration>
        <id>available-but-unselected</id>
      </configuration>
    </component>
    
    <!-- Invalid Content Consumers -->
    <component>
      <role>org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer</role>
      <role-hint>update-db-bad-content</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.InvalidScanConsumer</implementation>
      <configuration>
        <id>update-db-bad-content</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer</role>
      <role-hint>move-to-trash-then-notify</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.InvalidScanConsumer</implementation>
      <configuration>
        <id>move-to-trash-then-notify</id>
      </configuration>
    </component>
    <component>
      <role>org.apache.maven.archiva.repository.scanner.RepositoryContentConsumers</role>
      <role-hint>test</role-hint>
      <implementation>org.apache.maven.archiva.repository.scanner.RepositoryContentConsumersStub</implementation>  
    </component>
  </components>

</component-set>
