]> source.dussan.org Git - archiva.git/blob
74a63e922ad7fac3cfc597ba9339c258ec15c561
[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 <plexus>
22   <components>
23     <!--
24      | Configuration
25      -->
26     <component>
27       <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
28       <implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation>
29       <requirements>
30         <requirement>
31           <role>org.codehaus.plexus.registry.Registry</role>
32           <role-hint>configured</role-hint>
33         </requirement>
34         <requirement>
35           <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
36           <field-name>prePolicies</field-name>
37         </requirement>
38         <requirement>
39           <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
40           <field-name>postPolicies</field-name>
41         </requirement>
42       </requirements>
43     </component>
44     <component>
45       <role>org.codehaus.plexus.registry.Registry</role>
46       <role-hint>configured</role-hint>
47       <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation>
48       <configuration>
49         <properties>
50           <system/>
51           <xml fileName="${appserver.base}/conf/archiva.xml"
52                config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/>
53         </properties>
54       </configuration>
55     </component>
56     
57     <component>
58       <role>org.apache.maven.archiva.webdav.DavServerManager</role>
59       <role-hint>default</role-hint>
60       <implementation>org.apache.maven.archiva.webdav.DefaultDavServerManager</implementation>
61       <description>DefaultDavServerManager</description>
62       <requirements>
63         <requirement>
64           <role>org.apache.maven.archiva.webdav.DavServerComponent</role>
65           <role-hint>proxied</role-hint>
66         </requirement>
67       </requirements>
68     </component>
69     
70     <component>
71       <role>org.codehaus.plexus.cache.Cache</role>
72       <role-hint>url-failures-cache</role-hint>
73       <implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
74       <description>URL Failure Cache</description>
75       <configuration>
76         <disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
77         <disk-persistent>false</disk-persistent> <!--disabling disk persistence for unit testing. -->
78         <disk-store-path>${java.io.tmpdir}/archiva/urlcache</disk-store-path>
79         <eternal>false</eternal>
80         <max-elements-in-memory>1000</max-elements-in-memory>
81         <memory-eviction-policy>LRU</memory-eviction-policy>
82         <name>url-failures-cache</name>
83         <overflow-to-disk>false</overflow-to-disk>
84         <!-- 45 minutes = 2700 seconds -->
85         <time-to-idle-seconds>2700</time-to-idle-seconds>
86         <!-- 30 minutes = 1800 seconds  -->
87         <time-to-live-seconds>1800</time-to-live-seconds>
88       </configuration>
89     </component>
90     
91     <component>
92       <role>org.codehaus.plexus.redback.system.SecuritySystem</role>
93       <role-hint>default</role-hint>
94       <implementation>org.apache.maven.archiva.webdav.BypassSecuritySystem</implementation>
95     </component>
96     
97     <component>
98       <role>org.apache.maven.archiva.security.ServletAuthenticator</role>
99       <implementation>org.apache.maven.archiva.webdav.MockServletAuthenticator</implementation>
100       <requirements>
101         <requirement>
102           <role>org.codehaus.plexus.redback.system.SecuritySystem</role>
103           <field-name>securitySystem</field-name>
104         </requirement>
105       </requirements>
106     </component>
107         
108         <component>
109       <role>org.apache.maven.archiva.webdav.ArchivaDavResourceFactory</role>
110       <implementation>org.apache.maven.archiva.webdav.UnauthenticatedDavResourceFactory</implementation>
111       <requirements>
112         <requirement>
113           <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
114           <field-name>archivaConfiguration</field-name>
115         </requirement>
116         <requirement>
117           <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
118           <field-name>repositoryFactory</field-name>
119         </requirement>        
120         <requirement>
121           <role>org.apache.maven.archiva.repository.content.RepositoryRequest</role>
122           <field-name>repositoryRequest</field-name>
123         </requirement>
124         <requirement>
125           <role>org.apache.maven.archiva.proxy.RepositoryProxyConnectors</role>
126           <field-name>connectors</field-name>
127         </requirement>
128         <requirement>
129           <role>org.apache.maven.archiva.repository.metadata.MetadataTools</role>
130           <field-name>metadataTools</field-name>
131         </requirement>
132         <requirement>
133           <role>org.apache.maven.archiva.security.ServletAuthenticator</role>
134           <field-name>servletAuth</field-name>
135         </requirement>
136         <requirement>
137           <role>org.apache.maven.archiva.webdav.util.MimeTypes</role>
138           <field-name>mimeTypes</field-name>
139         </requirement>
140         <requirement>
141           <role>org.codehaus.plexus.redback.struts2.filter.authentication.HttpAuthenticator</role>
142           <role-hint>basic</role-hint>
143           <field-name>httpAuth</field-name>
144         </requirement>
145         <requirement>
146           <role>org.codehaus.plexus.digest.ChecksumFile</role>
147           <field-name>checksum</field-name>
148         </requirement>
149         <requirement>
150           <role>org.codehaus.plexus.digest.Digester</role>
151           <role-hint>sha1</role-hint>
152           <field-name>digestSha1</field-name>
153         </requirement>
154         <requirement>
155           <role>org.codehaus.plexus.digest.Digester</role>
156           <role-hint>md5</role-hint>
157           <field-name>digestMd5</field-name>
158         </requirement>
159         <requirement>
160           <role>org.apache.maven.archiva.scheduled.ArchivaTaskScheduler</role>
161           <field-name>scheduler</field-name>
162         </requirement>
163       </requirements>
164     </component>
165     <component>
166       <role>org.codehaus.plexus.jdo.JdoFactory</role>
167       <role-hint>archiva</role-hint>
168       <implementation>org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory</implementation>
169       
170       <configuration>
171         <!-- Database Configuration -->
172         <driverName>org.hsqldb.jdbcDriver</driverName>
173         <url>jdbc:hsqldb:mem:TESTDB</url>
174         <userName>sa</userName>
175         <password></password>
176         
177         <!-- JPOX and JDO configuration -->
178         <persistenceManagerFactoryClass>org.jpox.PersistenceManagerFactoryImpl</persistenceManagerFactoryClass>
179         <otherProperties>
180           <property>
181             <name>javax.jdo.PersistenceManagerFactoryClass</name>
182             <value>org.jpox.PersistenceManagerFactoryImpl</value>
183           </property>
184           <property>
185             <name>org.jpox.autoCreateSchema</name>
186             <value>true</value>
187           </property>
188           <property>
189             <name>org.jpox.validateTables</name>
190             <value>false</value>
191           </property>
192           <property>
193             <name>org.jpox.validateConstraints</name>
194             <value>false</value>
195           </property>
196           <property>
197             <name>org.jpox.validateColumns</name>
198             <value>false</value>
199           </property>
200           <property>
201             <name>org.jpox.autoStartMechanism</name>
202             <value>None</value>
203           </property>
204           <property>
205             <name>org.jpox.transactionIsolation</name>
206             <value>READ_UNCOMMITTED</value>
207           </property>
208           <property>
209             <name>org.jpox.poid.transactionIsolation</name>
210             <value>READ_UNCOMMITTED</value>
211           </property>
212           <property>
213             <name>org.jpox.rdbms.dateTimezone</name>
214             <value>JDK_DEFAULT_TIMEZONE</value>
215           </property>
216         </otherProperties>
217       </configuration>
218     </component>
219   </components>
220 </plexus>