]> source.dussan.org Git - archiva.git/blob
da3b1d143066d599528497701b0583d7a7a5c176
[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         <requirement>
44           <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
45           <field-name>prePolicies</field-name>
46         </requirement>
47         <requirement>
48           <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
49           <field-name>postPolicies</field-name>
50         </requirement>
51       </requirements>
52     </component>
53     <component>
54       <role>org.codehaus.plexus.registry.Registry</role>
55       <role-hint>configured</role-hint>
56       <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
57       <configuration>
58         <properties>
59           <system/>
60           <xml fileName="${appserver.base}/conf/archiva.xml"
61                config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
62         </properties>
63       </configuration>
64     </component>
65     
66     <component>
67       <role>org.apache.maven.archiva.webdav.DavServerManager</role>
68       <role-hint>default</role-hint>
69       <implementation>org.apache.maven.archiva.webdav.DefaultDavServerManager</implementation>
70       <description>DefaultDavServerManager</description>
71       <requirements>
72         <requirement>
73           <role>org.apache.maven.archiva.webdav.DavServerComponent</role>
74           <role-hint>proxied</role-hint>
75         </requirement>
76       </requirements>
77     </component>
78     
79     <component>
80       <role>org.codehaus.plexus.cache.Cache</role>
81       <role-hint>url-failures-cache</role-hint>
82       <implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
83       <description>URL Failure Cache</description>
84       <configuration>
85         <disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
86         <disk-persistent>false</disk-persistent> <!--disabling disk persistence for unit testing. -->
87         <disk-store-path>${java.io.tmpdir}/archiva/urlcache</disk-store-path>
88         <eternal>false</eternal>
89         <max-elements-in-memory>1000</max-elements-in-memory>
90         <memory-eviction-policy>LRU</memory-eviction-policy>
91         <name>url-failures-cache</name>
92         <overflow-to-disk>false</overflow-to-disk>
93         <!-- 45 minutes = 2700 seconds -->
94         <time-to-idle-seconds>2700</time-to-idle-seconds>
95         <!-- 30 minutes = 1800 seconds  -->
96         <time-to-live-seconds>1800</time-to-live-seconds>
97       </configuration>
98     </component>    
99     
100     
101     <!-- Don't drag in the world just to test this -->
102     <component>
103       <role>org.apache.maven.archiva.repository.scanner.RepositoryContentConsumers</role>
104       <role-hint>default</role-hint>
105       <implementation>org.apache.maven.archiva.webdav.StubRepositoryContentConsumers</implementation>
106     </component>
107     
108     <component>
109       <role>org.codehaus.plexus.redback.system.SecuritySystem</role>
110       <role-hint>default</role-hint>
111       <implementation>org.apache.maven.archiva.webdav.BypassSecuritySystem</implementation>
112     </component>
113         
114         <component>
115       <role>org.apache.maven.archiva.webdav.ArchivaDavResourceFactory</role>
116       <implementation>org.apache.maven.archiva.webdav.UnauthenticatedDavResourceFactory</implementation>
117       <requirements>
118         <requirement>
119           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
120           <field-name>archivaConfiguration</field-name>
121         </requirement>
122         <requirement>
123           <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
124           <field-name>repositoryFactory</field-name>
125         </requirement>        
126         <requirement>
127           <role>org.apache.maven.archiva.repository.content.RepositoryRequest</role>
128           <field-name>repositoryRequest</field-name>
129         </requirement>
130         <requirement>
131           <role>org.apache.maven.archiva.proxy.RepositoryProxyConnectors</role>
132           <field-name>connectors</field-name>
133         </requirement>
134         <requirement>
135           <role>org.apache.maven.archiva.repository.metadata.MetadataTools</role>
136           <field-name>metadataTools</field-name>
137         </requirement>
138         <requirement>
139           <role>org.apache.maven.archiva.security.ServletAuthenticator</role>
140           <field-name>servletAuth</field-name>
141         </requirement>
142         <requirement>
143           <role>org.apache.maven.archiva.webdav.util.MimeTypes</role>
144           <field-name>mimeTypes</field-name>
145         </requirement>
146         <requirement>
147           <role>org.codehaus.plexus.redback.xwork.filter.authentication.HttpAuthenticator</role>
148           <role-hint>basic</role-hint>
149           <field-name>httpAuth</field-name>
150         </requirement>
151       </requirements>
152     </component>
153   </components>
154 </plexus>