]> source.dussan.org Git - archiva.git/blob
0d3c7edfdd20402778d59979cd9038e2ce2bf655
[archiva.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <configuration>
3   <version>2</version>
4   <managedRepositories>
5     <managedRepository>
6       <id>internal</id>
7       <name>Archiva Managed Internal Repository</name>
8       <location>${appserver.base}/data/repositories/internal</location>
9       <layout>default</layout>
10       <releases>true</releases>
11       <snapshots>false</snapshots>
12       <scanned>true</scanned>
13       <refreshCronExpression>0 0 0 * * ?</refreshCronExpression>
14       <daysOlder>30</daysOlder>
15     </managedRepository>
16     <managedRepository>
17       <id>snapshots</id>
18       <name>Archiva Managed Snapshot Repository</name>
19       <location>${appserver.base}/data/repositories/snapshots</location>
20       <layout>default</layout>
21       <releases>false</releases>
22       <snapshots>true</snapshots>
23       <scanned>true</scanned>
24       <refreshCronExpression>0 0\,30 0 * * ?</refreshCronExpression>
25       <daysOlder>30</daysOlder>
26     </managedRepository>
27   </managedRepositories>
28   <remoteRepositories>
29     <remoteRepository>
30       <id>central</id>
31       <name>Central Repository</name>
32       <url>http://repo1.maven.org/maven2</url>
33       <layout>default</layout>
34     </remoteRepository>
35     <remoteRepository>
36       <id>maven2-repository.dev.java.net</id>
37       <name>Java.net Repository for Maven 2</name>
38       <url>http://download.java.net/maven/2/</url>
39       <layout>default</layout>
40     </remoteRepository>
41   </remoteRepositories>
42
43   <proxyConnectors>
44     <proxyConnector>
45       <sourceRepoId>internal</sourceRepoId>
46       <targetRepoId>central</targetRepoId>
47       <proxyId/>
48       <policies>
49         <snapshots>disabled</snapshots>
50         <releases>once</releases>
51         <checksum>fix</checksum>
52         <cache-failures>cached</cache-failures>
53       </policies>
54       <whiteListPatterns>
55         <whiteListPattern>**/*</whiteListPattern>
56       </whiteListPatterns>
57     </proxyConnector>
58     <proxyConnector>
59       <sourceRepoId>internal</sourceRepoId>
60       <targetRepoId>maven2-repository.dev.java.net</targetRepoId>
61       <proxyId/>
62       <policies>
63         <snapshots>disabled</snapshots>
64         <releases>once</releases>
65         <checksum>fix</checksum>
66         <cache-failures>cached</cache-failures>
67       </policies>
68       <whiteListPatterns>
69         <whiteListPattern>javax/**</whiteListPattern>
70       </whiteListPatterns>
71     </proxyConnector>
72   </proxyConnectors>
73
74   <repositoryScanning>
75     <fileTypes>
76       <fileType>
77         <id>artifacts</id>
78         <patterns>
79           <pattern>**/*.pom</pattern>
80           <pattern>**/*.jar</pattern>
81           <pattern>**/*.ear</pattern>
82           <pattern>**/*.war</pattern>
83           <pattern>**/*.car</pattern>
84           <pattern>**/*.sar</pattern>
85           <pattern>**/*.mar</pattern>
86           <pattern>**/*.rar</pattern>
87           <pattern>**/*.dtd</pattern>
88           <pattern>**/*.tld</pattern>
89           <pattern>**/*.tar.gz</pattern>
90           <pattern>**/*.tar.bz2</pattern>
91           <pattern>**/*.zip</pattern>
92         </patterns>
93       </fileType>
94       <fileType>
95         <id>indexable-content</id>
96         <patterns>
97           <pattern>**/*.txt</pattern>
98           <pattern>**/*.TXT</pattern>
99           <pattern>**/*.block</pattern>
100           <pattern>**/*.config</pattern>
101           <pattern>**/*.pom</pattern>
102           <pattern>**/*.xml</pattern>
103           <pattern>**/*.xsd</pattern>
104           <pattern>**/*.dtd</pattern>
105           <pattern>**/*.tld</pattern>
106         </patterns>
107       </fileType>
108       <fileType>
109         <id>auto-remove</id>
110         <patterns>
111           <pattern>**/*.bak</pattern>
112           <pattern>**/*~</pattern>
113           <pattern>**/*-</pattern>
114         </patterns>
115       </fileType>
116       <fileType>
117         <id>ignored</id>
118         <patterns>
119           <pattern>**/.htaccess</pattern>
120           <pattern>**/KEYS</pattern>
121           <pattern>**/*.rb</pattern>
122           <pattern>**/*.sh</pattern>
123           <pattern>**/.svn/**</pattern>
124           <pattern>**/.DAV/**</pattern>
125         </patterns>
126       </fileType>
127     </fileTypes>
128     <knownContentConsumers>
129       <knownContentConsumer>update-db-artifact</knownContentConsumer>
130       <knownContentConsumer>create-missing-checksums</knownContentConsumer>
131       <knownContentConsumer>update-db-repository-metadata</knownContentConsumer>
132       <knownContentConsumer>validate-checksum</knownContentConsumer>
133       <knownContentConsumer>validate-signature</knownContentConsumer>
134       <knownContentConsumer>index-content</knownContentConsumer>
135       <knownContentConsumer>auto-remove</knownContentConsumer>
136       <knownContentConsumer>auto-rename</knownContentConsumer>
137       <knownContentConsumer>metadata-updater</knownContentConsumer>
138       <!--knownContentConsumer>repository-purge</knownContentConsumer-->
139     </knownContentConsumers>
140     <invalidContentConsumers>
141       <invalidContentConsumer>update-db-bad-content</invalidContentConsumer>
142     </invalidContentConsumers>
143   </repositoryScanning>
144
145   <databaseScanning>
146     <cronExpression>0 0 0 * * ?</cronExpression>
147     <unprocessedConsumers>
148       <unprocessedConsumer>index-artifact</unprocessedConsumer>
149       <unprocessedConsumer>update-db-project</unprocessedConsumer>
150       <unprocessedConsumer>validate-repository-metadata</unprocessedConsumer>
151       <unprocessedConsumer>index-archive-toc</unprocessedConsumer>
152       <unprocessedConsumer>update-db-bytecode-stats</unprocessedConsumer>
153       <unprocessedConsumer>index-public-methods</unprocessedConsumer>
154     </unprocessedConsumers>
155     <cleanupConsumers>
156       <cleanupConsumer>not-present-remove-db-artifact</cleanupConsumer>
157       <cleanupConsumer>not-present-remove-db-project</cleanupConsumer>
158       <cleanupConsumer>not-present-remove-indexed</cleanupConsumer>
159     </cleanupConsumers>
160   </databaseScanning>
161
162   <webapp>
163     <ui>
164       <showFindArtifacts>true</showFindArtifacts>
165       <appletFindEnabled>true</appletFindEnabled>
166     </ui>
167   </webapp>
168
169 </configuration>