]> source.dussan.org Git - archiva.git/blob
52e286e66a8231f670d897d54feced057e38043a
[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
24     <!-- for testing repo purge using retention count -->
25     <component>
26       <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
27       <role-hint>repo-purge-consumer-by-retention-count</role-hint>
28       <implementation>org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer</implementation>
29       <requirements>
30         <requirement>
31           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
32           <role-hint>retention-count</role-hint>
33         </requirement>
34         <requirement>
35           <role>org.apache.maven.archiva.database.ArchivaDAO</role>
36           <role-hint>jdo</role-hint>
37         </requirement>
38         <requirement>
39           <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
40           <role-hint>retention-count</role-hint>
41         </requirement>
42         <requirement>
43           <role>org.apache.maven.archiva.repository.metadata.MetadataTools</role>
44         </requirement>
45         <requirement>
46           <role>org.apache.maven.archiva.configuration.FileTypes</role>
47           <role-hint>retention-count</role-hint>
48         </requirement>
49         <requirement>
50           <role>org.apache.maven.archiva.indexer.RepositoryContentIndexFactory</role>
51           <role-hint>lucene</role-hint>
52           <field-name>indexFactory</field-name>
53         </requirement>
54       </requirements>
55       <configuration>
56         <id>repository-purge</id>
57         <description>Purge repository of old snapshots</description>
58       </configuration>
59     </component>
60     <component>
61       <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
62       <role-hint>retention-count</role-hint>
63       <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
64       <requirements>
65         <requirement>
66           <role>org.codehaus.plexus.registry.Registry</role>
67           <role-hint>retention-count</role-hint>
68         </requirement>
69         <requirement>
70           <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
71           <field-name>prePolicies</field-name>
72         </requirement>
73         <requirement>
74           <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
75           <field-name>postPolicies</field-name>
76         </requirement>
77       </requirements>
78     </component>
79     <component>
80       <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
81       <role-hint>retention-count</role-hint>
82       <implementation>org.apache.maven.archiva.repository.RepositoryContentFactory</implementation>
83       <description>RepositoryContentRequest</description>
84       <requirements>
85         <requirement>
86           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
87           <role-hint>retention-count</role-hint>
88           <field-name>archivaConfiguration</field-name>
89         </requirement>
90       </requirements>
91     </component>
92     <component>
93       <role>org.codehaus.plexus.registry.Registry</role>
94       <role-hint>retention-count</role-hint>
95       <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
96       <configuration>
97         <properties>
98           <xml fileName="${basedir}/src/test/conf/repository-manager.xml"
99                config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
100         </properties>
101       </configuration>
102     </component>
103     <component>
104       <role>org.apache.maven.archiva.configuration.FileTypes</role>
105       <role-hint>retention-count</role-hint>
106       <implementation>org.apache.maven.archiva.configuration.FileTypes</implementation>
107       <requirements>
108         <requirement>
109           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
110           <role-hint>retention-count</role-hint>
111         </requirement>
112       </requirements>
113     </component>
114
115
116     <!-- for testing repo purge by # of days old and delete cleanupSnapshots -->
117     <component>
118       <role>org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer</role>
119       <role-hint>repo-purge-consumer-by-days-old</role-hint>
120       <implementation>org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer</implementation>
121       <requirements>
122         <requirement>
123           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
124           <role-hint>days-old</role-hint>
125         </requirement>
126         <requirement>
127           <role>org.apache.maven.archiva.database.ArchivaDAO</role>
128           <role-hint>jdo</role-hint>
129         </requirement>
130         <requirement>
131           <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
132           <role-hint>days-old</role-hint>
133         </requirement>
134         <requirement>
135           <role>org.apache.maven.archiva.repository.metadata.MetadataTools</role>
136         </requirement>
137         <requirement>
138           <role>org.apache.maven.archiva.configuration.FileTypes</role>
139           <role-hint>days-old</role-hint>
140         </requirement>
141         <requirement>
142           <role>org.apache.maven.archiva.indexer.RepositoryContentIndexFactory</role>
143           <role-hint>lucene</role-hint>
144           <field-name>indexFactory</field-name>
145         </requirement>
146       </requirements>
147       <configuration>
148         <id>repository-purge</id>
149         <description>Purge repository of old snapshots</description>
150       </configuration>
151     </component>
152     <component>
153       <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
154       <role-hint>days-old</role-hint>
155       <implementation>org.apache.maven.archiva.repository.RepositoryContentFactory</implementation>
156       <description>RepositoryContentRequest</description>
157       <requirements>
158         <requirement>
159           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
160           <role-hint>days-old</role-hint>
161           <field-name>archivaConfiguration</field-name>
162         </requirement>
163       </requirements>
164     </component>
165     <component>
166       <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
167       <role-hint>days-old</role-hint>
168       <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
169       <requirements>
170         <requirement>
171           <role>org.codehaus.plexus.registry.Registry</role>
172           <role-hint>days-old</role-hint>
173         </requirement>
174         <requirement>
175           <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
176           <field-name>prePolicies</field-name>
177         </requirement>
178         <requirement>
179           <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
180           <field-name>postPolicies</field-name>
181         </requirement>
182       </requirements>
183     </component>
184     <component>
185       <role>org.codehaus.plexus.registry.Registry</role>
186       <role-hint>days-old</role-hint>
187       <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
188       <configuration>
189         <properties>
190           <xml fileName="${basedir}/src/test/conf/repository-manager-daysOld.xml"
191                config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
192         </properties>
193       </configuration>
194     </component>
195     <component>
196       <role>org.apache.maven.archiva.configuration.FileTypes</role>
197       <role-hint>days-old</role-hint>
198       <implementation>org.apache.maven.archiva.configuration.FileTypes</implementation>
199       <requirements>
200         <requirement>
201           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
202           <role-hint>days-old</role-hint>
203         </requirement>
204       </requirements>
205     </component>
206
207
208     <!-- DAOs -->
209     <component>
210       <role>org.apache.maven.archiva.database.ArchivaDAO</role>
211       <role-hint>jdo</role-hint>
212       <implementation>org.apache.maven.archiva.database.jdo.JdoArchivaDAO</implementation>
213       <requirements>
214         <requirement>
215           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
216           <role-hint>archiva</role-hint>
217         </requirement>
218         <requirement>
219           <role>org.apache.maven.archiva.database.ArtifactDAO</role>
220           <role-hint>jdo</role-hint>
221         </requirement>
222         <requirement>
223           <role>org.apache.maven.archiva.database.ProjectModelDAO</role>
224           <role-hint>jdo</role-hint>
225         </requirement>
226         <requirement>
227           <role>org.apache.maven.archiva.database.RepositoryProblemDAO</role>
228           <role-hint>jdo</role-hint>
229         </requirement>
230       </requirements>
231     </component>
232     <component>
233       <role>org.apache.maven.archiva.database.ArtifactDAO</role>
234       <role-hint>jdo</role-hint>
235       <implementation>org.apache.maven.archiva.database.jdo.JdoArtifactDAO</implementation>
236       <requirements>
237         <requirement>
238           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
239           <role-hint>archiva</role-hint>
240         </requirement>
241       </requirements>
242     </component>
243     <component>
244       <role>org.apache.maven.archiva.database.ProjectModelDAO</role>
245       <role-hint>jdo</role-hint>
246       <implementation>org.apache.maven.archiva.database.jdo.JdoProjectModelDAO</implementation>
247       <requirements>
248         <requirement>
249           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
250           <role-hint>archiva</role-hint>
251         </requirement>
252       </requirements>
253     </component>
254     <component>
255       <role>org.apache.maven.archiva.database.RepositoryProblemDAO</role>
256       <role-hint>jdo</role-hint>
257       <implementation>org.apache.maven.archiva.database.jdo.JdoRepositoryProblemDAO</implementation>
258       <requirements>
259         <requirement>
260           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
261           <role-hint>archiva</role-hint>
262         </requirement>
263       </requirements>
264     </component>
265
266
267     <!-- JdoAccess -->
268     <component>
269       <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
270       <role-hint>archiva</role-hint>
271       <implementation>org.apache.maven.archiva.database.jdo.JdoAccess</implementation>
272       <requirements>
273         <requirement>
274           <role>org.codehaus.plexus.jdo.JdoFactory</role>
275           <role-hint>archiva</role-hint>
276         </requirement>
277       </requirements>
278     </component>
279
280     <!-- JDO Factory -->
281     <component>
282       <role>org.codehaus.plexus.jdo.JdoFactory</role>
283       <role-hint>archiva</role-hint>
284       <implementation>org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory</implementation>
285       <configuration>
286         <persistenceManagerFactoryClass>org.jpox.PersistenceManagerFactoryImpl</persistenceManagerFactoryClass>
287         <driverName>org.hsqldb.jdbcDriver</driverName>
288         <userName>sa</userName>
289         <password></password>
290         <url>jdbc:hsqldb:mem:testdb</url>
291         <otherProperties>
292           <property>
293             <name>javax.jdo.PersistenceManagerFactoryClass</name>
294             <value>org.jpox.PersistenceManagerFactoryImpl</value>
295           </property>
296         </otherProperties>
297       </configuration>
298     </component>
299     
300     <!-- LuceneRepositoryIndexFactory -->
301     <component>
302       <role>org.apache.maven.archiva.indexer.RepositoryContentIndexFactory</role>
303       <role-hint>lucene</role-hint>
304       <implementation>org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexFactoryStub</implementation>
305     </component>
306
307   </components>
308 </component-set>