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