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