]> source.dussan.org Git - archiva.git/blob
d7087095a182e4249b0ecd1f6eccd4b5f4f1a063
[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       <configuration>
72         <provider-hint>proxied</provider-hint>
73       </configuration>
74     </component>
75     
76     <component>
77       <role>org.codehaus.plexus.cache.Cache</role>
78       <role-hint>url-failures-cache</role-hint>
79       <implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
80       <description>URL Failure Cache</description>
81       <configuration>
82         <disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
83         <disk-persistent>false</disk-persistent> <!--disabling disk persistence for unit testing. -->
84         <disk-store-path>${java.io.tmpdir}/archiva/urlcache</disk-store-path>
85         <eternal>false</eternal>
86         <max-elements-in-memory>1000</max-elements-in-memory>
87         <memory-eviction-policy>LRU</memory-eviction-policy>
88         <name>url-failures-cache</name>
89         <overflow-to-disk>false</overflow-to-disk>
90         <!-- 45 minutes = 2700 seconds -->
91         <time-to-idle-seconds>2700</time-to-idle-seconds>
92         <!-- 30 minutes = 1800 seconds  -->
93         <time-to-live-seconds>1800</time-to-live-seconds>
94       </configuration>
95     </component>    
96     
97     
98     <!-- Don't drag in the world just to test this -->
99     <component>
100       <role>org.apache.maven.archiva.repository.scanner.RepositoryContentConsumers</role>
101       <role-hint>default</role-hint>
102       <implementation>org.apache.maven.archiva.web.repository.StubRepositoryContentConsumers</implementation>
103     </component>
104
105     <!-- TODO: shouldn't need so many components just to use in-memory - is flaky since these are auto-generated -->
106     <component>
107       <role>org.codehaus.plexus.redback.system.SecuritySystem</role>
108       <role-hint>default</role-hint>
109       <implementation>org.codehaus.plexus.redback.system.DefaultSecuritySystem</implementation>
110       <requirements>
111         <requirement>
112           <role>org.codehaus.plexus.redback.authentication.AuthenticationManager</role>
113           <field-name>authnManager</field-name>
114         </requirement>
115         <requirement>
116           <role>org.codehaus.plexus.redback.authorization.Authorizer</role>
117           <role-hint>rbac</role-hint>
118           <field-name>authorizer</field-name>
119         </requirement>
120         <requirement>
121           <role>org.codehaus.plexus.redback.users.UserManager</role>
122           <role-hint>memory</role-hint>
123           <field-name>userManager</field-name>
124         </requirement>
125         <requirement>
126           <role>org.codehaus.plexus.redback.keys.KeyManager</role>
127           <role-hint>memory</role-hint>
128           <field-name>keyManager</field-name>
129         </requirement>
130         <requirement>
131           <role>org.codehaus.plexus.redback.policy.UserSecurityPolicy</role>
132           <field-name>policy</field-name>
133         </requirement>
134       </requirements>
135     </component>
136
137     <component>
138       <role>org.codehaus.plexus.redback.authentication.Authenticator</role>
139       <role-hint>user-manager</role-hint>
140       <implementation>org.codehaus.plexus.redback.authentication.users.UserManagerAuthenticator</implementation>
141       <requirements>
142         <requirement>
143           <role>org.codehaus.plexus.redback.users.UserManager</role>
144           <role-hint>memory</role-hint>
145           <field-name>userManager</field-name>
146         </requirement>
147         <requirement>
148           <role>org.codehaus.plexus.redback.policy.UserSecurityPolicy</role>
149           <field-name>securityPolicy</field-name>
150         </requirement>
151       </requirements>
152     </component>
153
154     <component>
155       <role>org.codehaus.plexus.redback.authentication.Authenticator</role>
156       <role-hint>keystore</role-hint>
157       <implementation>org.codehaus.plexus.redback.authentication.keystore.KeyStoreAuthenticator</implementation>
158       <requirements>
159         <requirement>
160           <role>org.codehaus.plexus.redback.keys.KeyManager</role>
161           <role-hint>memory</role-hint>
162           <field-name>keystore</field-name>
163         </requirement>
164         <requirement>
165           <role>org.codehaus.plexus.redback.users.UserManager</role>
166           <role-hint>memory</role-hint>
167           <field-name>userManager</field-name>
168         </requirement>
169       </requirements>
170     </component>
171
172     <component>
173       <role>org.codehaus.plexus.redback.authorization.rbac.evaluator.PermissionEvaluator</role>
174       <role-hint>default</role-hint>
175       <implementation>org.codehaus.plexus.redback.authorization.rbac.evaluator.DefaultPermissionEvaluator
176       </implementation>
177       <requirements>
178         <requirement>
179           <role>org.codehaus.plexus.redback.users.UserManager</role>
180           <role-hint>memory</role-hint>
181           <field-name>userManager</field-name>
182         </requirement>
183       </requirements>
184     </component>
185
186     <component>
187       <role>org.codehaus.plexus.redback.authorization.Authorizer</role>
188       <role-hint>rbac</role-hint>
189       <implementation>org.codehaus.plexus.redback.authorization.rbac.RbacAuthorizer</implementation>
190       <requirements>
191         <requirement>
192           <role>org.codehaus.plexus.redback.rbac.RBACManager</role>
193           <role-hint>memory</role-hint>
194           <field-name>manager</field-name>
195         </requirement>
196         <requirement>
197           <role>org.codehaus.plexus.redback.users.UserManager</role>
198           <role-hint>memory</role-hint>
199           <field-name>userManager</field-name>
200         </requirement>
201         <requirement>
202           <role>org.codehaus.plexus.redback.authorization.rbac.evaluator.PermissionEvaluator</role>
203           <role-hint>default</role-hint>
204           <field-name>evaluator</field-name>
205         </requirement>
206       </requirements>
207     </component>
208
209     <component>
210       <role>org.codehaus.plexus.redback.role.RoleManager</role>
211       <role-hint>default</role-hint>
212       <implementation>org.codehaus.plexus.redback.role.DefaultRoleManager</implementation>
213       <instantiation-strategy>singleton</instantiation-strategy>
214       <requirements>
215         <requirement>
216           <role>org.codehaus.plexus.redback.role.merger.RoleModelMerger</role>
217           <role-hint>default</role-hint>
218           <field-name>modelMerger</field-name>
219         </requirement>
220         <requirement>
221           <role>org.codehaus.plexus.redback.role.validator.RoleModelValidator</role>
222           <role-hint>default</role-hint>
223           <field-name>modelValidator</field-name>
224         </requirement>
225         <requirement>
226           <role>org.codehaus.plexus.redback.role.processor.RoleModelProcessor</role>
227           <role-hint>default</role-hint>
228           <field-name>modelProcessor</field-name>
229         </requirement>
230         <requirement>
231           <role>org.codehaus.plexus.redback.role.template.RoleTemplateProcessor</role>
232           <role-hint>default</role-hint>
233           <field-name>templateProcessor</field-name>
234         </requirement>
235         <requirement>
236           <role>org.codehaus.plexus.redback.rbac.RBACManager</role>
237           <role-hint>memory</role-hint>
238           <field-name>rbacManager</field-name>
239         </requirement>
240         <requirement>
241           <role>org.codehaus.plexus.PlexusContainer</role>
242           <field-name>container</field-name>
243         </requirement>
244       </requirements>
245     </component>
246
247     <component>
248       <role>org.codehaus.plexus.redback.role.processor.RoleModelProcessor</role>
249       <role-hint>default</role-hint>
250       <implementation>org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor</implementation>
251       <requirements>
252         <requirement>
253           <role>org.codehaus.plexus.redback.rbac.RBACManager</role>
254           <role-hint>memory</role-hint>
255           <field-name>rbacManager</field-name>
256         </requirement>
257       </requirements>
258     </component>
259
260     <component>
261       <role>org.codehaus.plexus.redback.role.template.RoleTemplateProcessor</role>
262       <role-hint>default</role-hint>
263       <implementation>org.codehaus.plexus.redback.role.template.DefaultRoleTemplateProcessor</implementation>
264       <requirements>
265         <requirement>
266           <role>org.codehaus.plexus.redback.rbac.RBACManager</role>
267           <role-hint>memory</role-hint>
268           <field-name>rbacManager</field-name>
269         </requirement>
270       </requirements>
271     </component>
272   </components>
273 </plexus>