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