]> source.dussan.org Git - archiva.git/blob
974e148d29c5c1050484d4996205ebf50a2a2a7d
[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 <plexus>
22   <components>
23     <!--
24      | Logger manager
25      -->
26     <component>
27       <role>org.codehaus.plexus.logging.LoggerManager</role>
28       <implementation>org.codehaus.plexus.logging.slf4j.Slf4jLoggerManager</implementation>
29       <lifecycle-handler>basic</lifecycle-handler>
30     </component>
31
32     <!--
33      | Configuration
34      -->
35     <component>
36       <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
37       <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
38       <requirements>
39         <requirement>
40           <role>org.codehaus.plexus.registry.Registry</role>
41           <role-hint>configured</role-hint>
42         </requirement>
43       </requirements>
44     </component>
45     <component>
46       <role>org.codehaus.plexus.registry.Registry</role>
47       <role-hint>configured</role-hint>
48       <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
49       <configuration>
50         <properties>
51           <system/>
52           <xml fileName="${appserver.base}/conf/archiva.xml"
53                config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
54         </properties>
55       </configuration>
56     </component>
57     
58     <component>
59       <role>org.codehaus.plexus.webdav.DavServerManager</role>
60       <role-hint>default</role-hint>
61       <implementation>org.codehaus.plexus.webdav.DefaultDavServerManager</implementation>
62       <description>DefaultDavServerManager</description>
63       <configuration>
64         <provider-hint>proxied</provider-hint>
65       </configuration>
66     </component>
67     
68     <component>
69       <role>org.codehaus.plexus.cache.Cache</role>
70       <role-hint>url-failures-cache</role-hint>
71       <implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
72       <description>URL Failure Cache</description>
73       <configuration>
74         <disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
75         <disk-persistent>false</disk-persistent> <!--disabling disk persistence for unit testing. -->
76         <disk-store-path>${java.io.tmpdir}/archiva/urlcache</disk-store-path>
77         <eternal>false</eternal>
78         <max-elements-in-memory>1000</max-elements-in-memory>
79         <memory-eviction-policy>LRU</memory-eviction-policy>
80         <name>url-failures-cache</name>
81         <overflow-to-disk>false</overflow-to-disk>
82         <!-- 45 minutes = 2700 seconds -->
83         <time-to-idle-seconds>2700</time-to-idle-seconds>
84         <!-- 30 minutes = 1800 seconds  -->
85         <time-to-live-seconds>1800</time-to-live-seconds>
86       </configuration>
87     </component>    
88     
89     
90     <!-- Don't drag in the world just to test this -->
91     <component>
92       <role>org.apache.maven.archiva.repository.scanner.RepositoryContentConsumers</role>
93       <role-hint>default</role-hint>
94       <implementation>org.apache.maven.archiva.web.repository.StubRepositoryContentConsumers</implementation>
95     </component>
96     
97     <component>
98       <role>org.codehaus.plexus.redback.system.SecuritySystem</role>
99       <role-hint>default</role-hint>
100       <implementation>org.apache.maven.archiva.web.repository.BypassSecuritySystem</implementation>
101     </component>
102
103   </components>
104 </plexus>