<?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.consumers.DatabaseCleanupConsumer</role>
      <role-hint>lucene-cleanup</role-hint>
      <implementation>org.apache.maven.archiva.consumers.lucene.LuceneCleanupRemoveIndexedConsumer</implementation>
      <requirements>
        <requirement>
          <role>org.apache.maven.archiva.indexer.RepositoryContentIndexFactory</role>
          <role-hint>lucene-cleanup</role-hint>
          <field-name>repoIndexFactory</field-name>
        </requirement>
        <requirement>
          <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
      <implementation>org.apache.maven.archiva.repository.RepositoryContentFactory</implementation>
      <requirements>
        <requirement>
          <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
          <role-hint>lucene-cleanup</role-hint>          
        </requirement>
      </requirements>
    </component>
    <component>
      <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
      <role-hint>lucene-cleanup</role-hint>
      <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
      <requirements>
        <requirement>
          <role>org.codehaus.plexus.registry.Registry</role>
          <role-hint>lucene-cleanup</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>lucene-cleanup</role-hint>
      <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
      <configuration>
        <properties>
          <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.indexer.RepositoryContentIndexFactory</role>
      <implementation>org.apache.maven.archiva.consumers.lucene.stubs.LuceneRepositoryContentIndexFactoryStub</implementation>
      <role-hint>lucene-cleanup</role-hint>
    </component>
    
  </components>
</component-set>
