]> source.dussan.org Git - archiva.git/blob
c34c60962aac9dcb3d3f2c82ae18a5765a996340
[archiva.git] /
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3   ~ Licensed to the Apache Software Foundation (ASF) under one
4   ~ or more contributor license agreements.  See the NOTICE file
5   ~ distributed with this work for additional information
6   ~ regarding copyright ownership.  The ASF licenses this file
7   ~ to you under the Apache License, Version 2.0 (the
8   ~ "License"); you may not use this file except in compliance
9   ~ with the License.  You may obtain a copy of the License at
10   ~
11   ~   http://www.apache.org/licenses/LICENSE-2.0
12   ~
13   ~ Unless required by applicable law or agreed to in writing,
14   ~ software distributed under the License is distributed on an
15   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   ~ KIND, either express or implied.  See the License for the
17   ~ specific language governing permissions and limitations
18   ~ under the License.
19   -->
20
21 <component-set>
22   <components>
23     <component>
24       <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
25       <role-hint>database-cleanup</role-hint>
26       <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
27       <requirements>
28         <requirement>
29           <role>org.codehaus.plexus.registry.Registry</role>
30           <role-hint>database-cleanup</role-hint>
31         </requirement>
32         <requirement>
33           <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
34           <field-name>prePolicies</field-name>
35         </requirement>
36         <requirement>
37           <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
38           <field-name>postPolicies</field-name>
39         </requirement>
40       </requirements>
41     </component>
42     <component>
43       <role>org.codehaus.plexus.registry.Registry</role>
44       <role-hint>database-cleanup</role-hint>
45       <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
46       <configuration>
47         <properties>
48           <xml fileName="${basedir}/target/test/repository-manager.xml" config-optional="true" config-forceCreate="true"
49                  config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
50         </properties>
51       </configuration>
52     </component>
53     
54     <component>
55       <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>      
56       <implementation>org.apache.maven.archiva.repository.RepositoryContentFactory</implementation>
57       <requirements>
58         <requirement>
59           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
60           <role-hint>database-cleanup</role-hint>
61         </requirement>
62       </requirements>
63     </component>
64   </components>
65   
66   <component>
67     <role>org.codehaus.plexus.cache.Cache</role>
68     <role-hint>effective-project-cache</role-hint>
69     <implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
70     <description>Effective Project Cache</description>
71     <configuration>
72       <disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
73       <disk-persistent>true</disk-persistent>
74       <disk-store-path>${java.io.tmpdir}/archiva/effectiveproject</disk-store-path>
75       <eternal>true</eternal>
76       <max-elements-in-memory>1000</max-elements-in-memory>
77       <memory-eviction-policy>LRU</memory-eviction-policy>
78       <name>effective-project-cache</name>
79       <overflow-to-disk>false</overflow-to-disk>
80       <!-- TODO: Adjust the time to live to be more sane (ie: huge 4+ hours) -->
81       <!-- 45 minutes = 2700 seconds -->
82       <time-to-idle-seconds>2700</time-to-idle-seconds>
83       <!-- 30 minutes = 1800 seconds  -->
84       <time-to-live-seconds>1800</time-to-live-seconds>
85     </configuration>
86   </component>
87 </component-set>