4 ~ Licensed to the Apache Software Foundation (ASF) under one
5 ~ or more contributor license agreements. See the NOTICE file
6 ~ distributed with this work for additional information
7 ~ regarding copyright ownership. The ASF licenses this file
8 ~ to you under the Apache License, Version 2.0 (the
9 ~ "License"); you may not use this file except in compliance
10 ~ with the License. You may obtain a copy of the License at
12 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~ Unless required by applicable law or agreed to in writing,
15 ~ software distributed under the License is distributed on an
16 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 ~ KIND, either express or implied. See the License for the
18 ~ specific language governing permissions and limitations
21 <beans xmlns="http://www.springframework.org/schema/beans"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xmlns:context="http://www.springframework.org/schema/context"
24 xsi:schemaLocation="http://www.springframework.org/schema/beans
25 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
26 http://www.springframework.org/schema/context
27 http://www.springframework.org/schema/context/spring-context-3.0.xsd"
28 default-lazy-init="true">
30 <context:annotation-config/>
31 <context:component-scan base-package="org.apache.archiva.metadata.repository"/>
33 <!-- for testing repo purge using retention count -->
35 <bean name="knownRepositoryContentConsumer#repo-purge-consumer-by-retention-count" class="org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer">
36 <property name="configuration" ref="archivaConfiguration#retention-count"/>
37 <property name="repositoryContentFactory" ref="repositoryContentFactory#retention-count"/>
38 <property name="filetypes" ref="filetypes#retention-count"/>
41 <bean name="archivaConfiguration#retention-count" class="org.apache.maven.archiva.configuration.DefaultArchivaConfiguration">
42 <property name="registry" ref="registry#retention-count"/>
45 <alias name="archivaConfiguration#retention-count" alias="archivaConfiguration"/>
46 <alias name="archivaConfiguration#retention-count" alias="archivaConfiguration#default"/>
48 <bean name="repositoryContentFactory#retention-count" class="org.apache.maven.archiva.repository.RepositoryContentFactory">
49 <property name="archivaConfiguration" ref="archivaConfiguration#retention-count"/>
52 <bean name="registry#retention-count" class="org.codehaus.redback.components.registry.commons.CommonsConfigurationRegistry">
53 <property name="properties">
57 <xml fileName="${basedir}/src/test/conf/repository-manager.xml"
58 config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
65 <bean name="filetypes#retention-count" class="org.apache.maven.archiva.configuration.FileTypes">
66 <property name="archivaConfiguration" ref="archivaConfiguration#retention-count"/>
69 <alias name="filetypes#retention-count" alias="filetypes"/>
71 <!-- for testing repo purge by # of days old and delete cleanupSnapshots -->
72 <bean name="knownRepositoryContentConsumer#repo-purge-consumer-by-days-old" class="org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer">
73 <property name="configuration" ref="archivaConfiguration#days-old"/>
74 <property name="repositoryContentFactory" ref="repositoryContentFactory#days-old"/>
75 <property name="filetypes" ref="filetypes#days-old"/>
78 <bean name="archivaConfiguration#days-old" class="org.apache.maven.archiva.configuration.DefaultArchivaConfiguration">
79 <property name="registry" ref="registry#days-old"/>
82 <bean name="repositoryContentFactory#days-old" class="org.apache.maven.archiva.repository.RepositoryContentFactory">
83 <property name="archivaConfiguration" ref="archivaConfiguration#days-old"/>
86 <bean name="registry#days-old" class="org.codehaus.redback.components.registry.commons.CommonsConfigurationRegistry">
87 <property name="properties">
91 <xml fileName="${basedir}/src/test/conf/repository-manager-daysOld.xml"
92 config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
99 <bean name="filetypes#days-old" class="org.apache.maven.archiva.configuration.FileTypes">
100 <property name="archivaConfiguration" ref="archivaConfiguration#days-old"/>