]> source.dussan.org Git - archiva.git/blob
b72bd5c873a5f754d971cb42ca591df020dbe6ea
[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     <!-- RetentionCountRepositoryPurge -->
25     <component>
26       <role>org.apache.maven.archiva.consumers.core.repository.RepositoryPurge</role>
27       <role-hint>retention-count</role-hint>
28       <implementation>org.apache.maven.archiva.consumers.core.repository.RetentionCountRepositoryPurge</implementation>
29       <requirements>
30         <requirement>
31           <role>org.apache.maven.archiva.database.ArchivaDAO</role>
32           <role-hint>jdo</role-hint>
33         </requirement>
34         <requirement>
35           <role>org.apache.maven.archiva.indexer.RepositoryContentIndexFactory</role>
36           <role-hint>lucene</role-hint>
37         </requirement>
38       </requirements>
39     </component>
40
41     <!-- LuceneRepositoryContentIndexFactory -->
42     <component>
43       <role>org.apache.maven.archiva.indexer.RepositoryContentIndexFactory</role>
44       <role-hint>lucene</role-hint>
45       <implementation>org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentIndexFactory</implementation>
46       <requirements>
47         <requirement>
48           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
49           <role-hint></role-hint>
50         </requirement>
51       </requirements>
52     </component>
53
54     <!-- ArchivaConfiguration -->
55     <component>
56       <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
57       <role-hint>test-configuration</role-hint>
58       <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
59       <requirements>
60         <requirement>
61           <role>org.codehaus.plexus.registry.Registry</role>
62           <role-hint>configured</role-hint>
63         </requirement>
64       </requirements>
65     </component>
66     <component>
67       <role>org.codehaus.plexus.registry.Registry</role>
68       <role-hint>configured</role-hint>
69       <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
70       <configuration>
71         <properties>
72           <system/>
73           <xml fileName="${basedir}/src/test/conf/repository-manager.xml"
74                config-name="org.apache.maven.archiva" config-at="org.apache.maven.archiva"/>
75         </properties>
76       </configuration>
77     </component>
78
79     <!-- ArchivaDAO -->
80     <component>
81       <role>org.apache.maven.archiva.database.ArchivaDAO</role>
82       <role-hint>jdo</role-hint>
83       <implementation>org.apache.maven.archiva.database.jdo.JdoArchivaDAO</implementation>
84       <requirements>
85         <requirement>
86           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
87           <role-hint>archiva</role-hint>
88         </requirement>
89         <requirement>
90           <role>org.apache.maven.archiva.database.ArtifactDAO</role>
91           <role-hint>jdo</role-hint>
92         </requirement>
93         <requirement>
94           <role>org.apache.maven.archiva.database.ProjectModelDAO</role>
95           <role-hint>jdo</role-hint>
96         </requirement>
97         <requirement>
98           <role>org.apache.maven.archiva.database.RepositoryDAO</role>
99           <role-hint>jdo</role-hint>
100         </requirement>
101         <requirement>
102           <role>org.apache.maven.archiva.database.RepositoryProblemDAO</role>
103           <role-hint>jdo</role-hint>
104         </requirement>
105       </requirements>
106     </component>
107
108     <!-- JdoAccess -->
109     <component>
110       <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
111       <role-hint>archiva</role-hint>
112       <implementation>org.apache.maven.archiva.database.jdo.JdoAccess</implementation>
113       <requirements>
114         <requirement>
115           <role>org.codehaus.plexus.jdo.JdoFactory</role>
116           <role-hint>archiva</role-hint>
117         </requirement>
118       </requirements>
119     </component>
120
121     <!-- ArtifactDAO -->
122     <component>
123       <role>org.apache.maven.archiva.database.ArtifactDAO</role>
124       <role-hint>jdo</role-hint>
125       <implementation>org.apache.maven.archiva.database.jdo.JdoArtifactDAO</implementation>
126       <requirements>
127         <requirement>
128           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
129           <role-hint>archiva</role-hint>
130         </requirement>
131       </requirements>
132     </component>
133
134     <!-- ProjectModelDAO -->
135     <component>
136       <role>org.apache.maven.archiva.database.ProjectModelDAO</role>
137       <role-hint>jdo</role-hint>
138       <implementation>org.apache.maven.archiva.database.jdo.JdoProjectModelDAO</implementation>
139       <requirements>
140         <requirement>
141           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
142           <role-hint>archiva</role-hint>
143         </requirement>
144       </requirements>
145     </component>
146
147     <!-- RepositoryDAO -->
148     <component>
149       <role>org.apache.maven.archiva.database.RepositoryDAO</role>
150       <role-hint>jdo</role-hint>
151       <implementation>org.apache.maven.archiva.database.jdo.JdoRepositoryDAO</implementation>
152       <requirements>
153         <requirement>
154           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
155           <role-hint>archiva</role-hint>
156         </requirement>
157       </requirements>
158     </component>
159
160     <!-- RepositoryProblemDAO -->
161     <component>
162       <role>org.apache.maven.archiva.database.RepositoryProblemDAO</role>
163       <role-hint>jdo</role-hint>
164       <implementation>org.apache.maven.archiva.database.jdo.JdoRepositoryProblemDAO</implementation>
165       <requirements>
166         <requirement>
167           <role>org.apache.maven.archiva.database.jdo.JdoAccess</role>
168           <role-hint>archiva</role-hint>
169         </requirement>
170       </requirements>
171     </component>
172
173     <!-- JDO Factory -->
174     <component>
175       <role>org.codehaus.plexus.jdo.JdoFactory</role>
176       <role-hint>archiva</role-hint>
177       <implementation>org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory</implementation>
178       <configuration>
179         <persistenceManagerFactoryClass>org.jpox.PersistenceManagerFactoryImpl</persistenceManagerFactoryClass>
180         <driverName>org.hsqldb.jdbcDriver</driverName>
181         <userName>sa</userName>
182         <password></password>
183         <url>jdbc:hsqldb:mem:testdb</url>
184         <otherProperties>
185           <property>
186             <name>javax.jdo.PersistenceManagerFactoryClass</name>
187             <value>org.jpox.PersistenceManagerFactoryImpl</value>
188           </property>
189           <property>
190             <name>org.jpox.transactionIsolation</name>
191             <value>READ_COMMITTED</value>
192           </property>
193           <property>
194             <name>org.jpox.poid.transactionIsolation</name>
195             <value>READ_COMMITTED</value>
196           </property>
197           <property>
198             <name>org.jpox.autoCreateSchema</name>
199             <value>true</value>
200           </property>
201           <property>
202             <name>javax.jdo.option.RetainValues</name>
203             <value>true</value>
204           </property>
205           <property>
206             <name>javax.jdo.option.RestoreValues</name>
207             <value>true</value>
208           </property>
209           <property>
210             <name>org.jpox.validateTables</name>
211             <value>true</value>
212           </property>
213           <property>
214             <name>org.jpox.validateColumns</name>
215             <value>true</value>
216           </property>
217           <property>
218             <name>org.jpox.validateConstraints</name>
219             <value>true</value>
220           </property>
221         </otherProperties>
222       </configuration>
223     </component>
224
225   </components>
226 </component-set>