]> source.dussan.org Git - archiva.git/blob
0e4a974ef387e9e7b26a528e9a0fc14fb6ea9a99
[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>1</version>
23   <repositories>
24     <repository>
25       <id>internal</id>
26       <name>Archiva Managed Internal Repository</name>
27       <url>file://${appserver.base}/repositories/internal</url>
28       <layout>default</layout>
29       <releases>true</releases>
30       <snapshots>false</snapshots>
31       <indexed>true</indexed>
32       <refreshCronExpression>0 0 * * ?</refreshCronExpression>
33     </repository>
34     <repository>
35       <id>snapshots</id>
36       <name>Archiva Managed Snapshot Repository</name>
37       <url>file://${appserver.base}/repositories/internal</url>
38       <layout>default</layout>
39       <releases>false</releases>
40       <snapshots>true</snapshots>
41       <indexed>true</indexed>
42       <refreshCronExpression>0 0,30 * * ?</refreshCronExpression>
43     </repository>
44     <repository>
45       <id>central</id>
46       <name>Central Repository</name>
47       <url>http://repo1.maven.org/maven2</url>
48       <layout>default</layout>
49       <releases>true</releases>
50       <snapshots>false</snapshots>
51       <indexed>false</indexed>
52     </repository>
53     <repository>
54       <id>maven2-repository.dev.java.net</id>
55       <name>Java.net Repository for Maven 2</name>
56       <url>https://maven2-repository.dev.java.net/nonav/repository</url>
57       <layout>default</layout>
58       <releases>true</releases>
59       <snapshots>false</snapshots>
60       <indexed>false</indexed>
61     </repository>
62     <repository>
63       <id>test-repo</id>
64       <name>Test Repository</name>
65       <url>file://${appserver.base}/repositories/test-repo</url>
66       <layout>default</layout>
67       <releases>true</releases>
68       <snapshots>true</snapshots>
69       <indexed>true</indexed>
70       <refreshCronExpression>0 0 * * ?</refreshCronExpression>
71       <daysOlder>0</daysOlder>
72       <retentionCount>2</retentionCount>
73     </repository>
74   </repositories>
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>