]> source.dussan.org Git - archiva.git/blob
384891f0424858938373d9b561244443fbead414
[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 <configuration>
22   <version>3.0.0</version>
23   <managedRepositories>
24     <managedRepository>
25       <id>internal</id>
26       <name>Archiva Managed Internal Repository</name>
27       <location>file://${appserver.base}/repositories/internal</location>
28       <indexDir>${appserver.base}/repositories/internal/.indexer</indexDir>
29       <layout>default</layout>
30       <releases>true</releases>
31       <snapshots>false</snapshots>
32       <indexed>true</indexed>
33       <refreshCronExpression>0 0 * * * ?</refreshCronExpression>
34     </managedRepository>
35     <managedRepository>
36       <id>snapshots</id>
37       <name>Archiva Managed Snapshot Repository</name>
38       <location>file://${appserver.base}/repositories/snapshots</location>
39       <indexDir>.indexer</indexDir>
40       <layout>default</layout>
41       <releases>false</releases>
42       <snapshots>true</snapshots>
43       <indexed>true</indexed>
44       <refreshCronExpression>0 0,30 * * * ?</refreshCronExpression>
45     </managedRepository>
46     <managedRepository>
47       <id>test-repo</id>
48       <name>Test Repository</name>
49       <location>file://${appserver.base}/test-repo</location>
50       <layout>default</layout>
51       <releases>true</releases>
52       <snapshots>true</snapshots>
53       <indexed>true</indexed>
54       <refreshCronExpression>0 0 * * * ?</refreshCronExpression>
55     </managedRepository>
56   </managedRepositories>
57   <remoteRepositories>
58     <remoteRepository>
59       <id>central</id>
60       <name>Central Repository</name>
61       <url>http://repo1.maven.org/maven2</url>
62       <layout>default</layout>
63       <releases>true</releases>
64       <snapshots>false</snapshots>
65       <indexed>false</indexed>
66     </remoteRepository>
67     <remoteRepository>
68       <id>maven2-repository.dev.java.net</id>
69       <name>Java.net Repository for Maven 2</name>
70       <url>https://maven2-repository.dev.java.net/nonav/repository</url>
71       <layout>default</layout>
72       <indexed>false</indexed>
73     </remoteRepository>
74   </remoteRepositories>
75
76   <proxyConnectors>
77     <proxyConnector>
78       <sourceRepoId>internal</sourceRepoId>
79       <targetRepoId>central</targetRepoId>
80       <proxyId/>
81       <snapshotsPolicy>disabled</snapshotsPolicy>
82       <releasePolicy>never</releasePolicy>
83       <failurePolicy>not-found</failurePolicy>
84     </proxyConnector>
85     <proxyConnector>
86       <sourceRepoId>internal</sourceRepoId>
87       <targetRepoId>maven2-repository.dev.java.net</targetRepoId>
88       <proxyId/>
89       <snapshotsPolicy>disabled</snapshotsPolicy>
90       <releasePolicy>never</releasePolicy>
91       <failurePolicy>not-found</failurePolicy>
92       <whiteListPatterns>
93         <whiteListPattern>javax/**</whiteListPattern>
94       </whiteListPatterns>
95     </proxyConnector>
96   </proxyConnectors>
97
98   <networkProxies>
99     <networkProxy>
100       <id>example</id>
101       <protocol>http</protocol>
102       <host>proxy.mycompany.com</host>
103       <port>8080</port>
104       <username>myself</username>
105       <password>mypass</password>
106     </networkProxy>
107   </networkProxies>
108
109   <repositoryScanning>
110     <fileTypes>
111       <fileType>
112         <id>artifacts</id>
113         <patterns>
114           <pattern>**/*.pom</pattern>
115           <pattern>**/*.jar</pattern>
116           <pattern>**/*.ear</pattern>
117           <pattern>**/*.war</pattern>
118           <pattern>**/*.car</pattern>
119           <pattern>**/*.sar</pattern>
120           <pattern>**/*.mar</pattern>
121           <pattern>**/*.rar</pattern>
122           <pattern>**/*.dtd</pattern>
123           <pattern>**/*.tld</pattern>
124           <pattern>**/*.tar.gz</pattern>
125           <pattern>**/*.tar.bz2</pattern>
126           <pattern>**/*.zip</pattern>
127         </patterns>
128       </fileType>
129       <fileType>
130         <id>indexable-content</id>
131         <patterns>
132           <pattern>**/*.txt</pattern>
133           <pattern>**/*.TXT</pattern>
134           <pattern>**/*.block</pattern>
135           <pattern>**/*.config</pattern>
136           <pattern>**/*.pom</pattern>
137           <pattern>**/*.xml</pattern>
138           <pattern>**/*.xsd</pattern>
139           <pattern>**/*.dtd</pattern>
140           <pattern>**/*.tld</pattern>
141         </patterns>
142       </fileType>
143       <fileType>
144         <id>auto-remove</id>
145         <patterns>
146           <pattern>**/*.bak</pattern>
147           <pattern>**/*~</pattern>
148           <pattern>**/*-</pattern>
149         </patterns>
150       </fileType>
151       <fileType>
152         <id>ignored</id>
153         <patterns>
154           <pattern>**/.htaccess</pattern>
155           <pattern>**/KEYS</pattern>
156           <pattern>**/*.rb</pattern>
157           <pattern>**/*.sh</pattern>
158           <pattern>**/.svn/**</pattern>
159           <pattern>**/.DAV/**</pattern>
160         </patterns>
161       </fileType>
162     </fileTypes>
163     <knownContentConsumers>
164       <knownContentConsumer>update-db-artifact</knownContentConsumer>
165       <knownContentConsumer>create-missing-checksums</knownContentConsumer>
166       <knownContentConsumer>update-db-repository-metadata</knownContentConsumer>
167       <knownContentConsumer>validate-checksum</knownContentConsumer>
168       <knownContentConsumer>validate-signature</knownContentConsumer>
169       <knownContentConsumer>index-content</knownContentConsumer>
170       <knownContentConsumer>auto-remove</knownContentConsumer>
171       <knownContentConsumer>auto-rename</knownContentConsumer>
172       <knownContentConsumer>repository-purge</knownContentConsumer>
173     </knownContentConsumers>
174     <invalidContentConsumers>
175       <invalidContentConsumer>update-db-bad-content</invalidContentConsumer>
176     </invalidContentConsumers>
177   </repositoryScanning>
178
179   <databaseScanning>
180     <cronExpression>0 0 * * * ?</cronExpression>
181     <unprocessedConsumers>
182       <unprocessedConsumer>index-artifact</unprocessedConsumer>
183       <unprocessedConsumer>update-db-project</unprocessedConsumer>
184       <unprocessedConsumer>validate-repository-metadata</unprocessedConsumer>
185       <unprocessedConsumer>index-archive-toc</unprocessedConsumer>
186       <unprocessedConsumer>update-db-bytecode-stats</unprocessedConsumer>
187       <unprocessedConsumer>index-public-methods</unprocessedConsumer>
188     </unprocessedConsumers>
189     <cleanupConsumers>
190       <cleanupConsumer>not-present-remove-db-artifact</cleanupConsumer>
191       <cleanupConsumer>not-present-remove-db-project</cleanupConsumer>
192       <cleanupConsumer>not-present-remove-indexed</cleanupConsumer>
193     </cleanupConsumers>
194   </databaseScanning>
195
196   <webapp>
197     <ui>
198       <showFindArtifacts>true</showFindArtifacts>
199       <appletFindEnabled>true</appletFindEnabled>
200     </ui>
201   </webapp>
202
203 </configuration>