-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdsmp.conf.xml
60 lines (55 loc) · 2.64 KB
/
dsmp.conf.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Config for DSMP.
This file is in the Public Domain. You can use it any way you wish.
-->
<dsmp-config>
<!-- Directories where things can be found. Relative paths are relative to
the base directory (first parameter on the command line when starting
DSMP)
-->
<directories cache="cache-dir" patches="patches-dir" />
<!-- On which port to serve proxy requests from Maven -->
<server port="1234" />
<!-- Which proxy to use if we don't have a file -->
<!--
<proxy host="proxy.server" port="234" user="xxx" password="yyy" no-proxy="a,b , c"/>
-->
<!-- Sometimes, you want maven to download a file from a different place. For
example the closest Maven mirror. You can do this by configuring <mirror>s
in settings.xml. But this doesn't work if the mirror IDs (from
settings.xml) and the repository IDs (from pom.xml) don't match.
Or what do you do if the POM says to download
-->
<!-- Redirect all requests to central to the closest mirror -->
<!--
<redirect from="http://repo1.maven.org/maven2" to="http://maven.sateh.com/maven2" />
-->
<!-- Sometimes, a POM will ask for a file from a mirror. In this case, direct
the requests to the closest mirror. -->
<!--
<redirect from="http://www.ibiblio.org/maven2" to="http://maven.sateh.com/maven2" />
-->
<!-- These two directories on the server always contain the same content (on
the server, one is a soft link to the other). We don't want to cache the
same files twice. -->
<!--
<redirect from="http://maven.sateh.com/repository" to="http://maven.sateh.com/maven2" />
-->
<!-- POM bugfixes -->
<!-- spring-javaconfig believes it has to download releases from m2.safehaus.org.
Also it uses the wrong path for aopalliance (org.aopalliance instead of aopalliance).
So we redirect requests for "org/aopalliance" to "aopalliance" and then
everything else to the root of the mirror -->
<!--
<redirect from="http://m2.safehaus.org/org/aopalliance" to="http://maven.sateh.com/maven2/aopalliance" />
<redirect from="http://m2.safehaus.org" to="http://maven.sateh.com/maven2" />
-->
<!-- Sometimes, you just need to use snapshots. But most of the time, you just
want a very specific snapshot, not *all* of them. With deny/allow, you
can control what Maven can see and what it can't.
First, we allow to download the deploy plugin.
Next, we deny access to any other snapshot plugin on people.apache.org.
-->
<allow url="http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-deploy-plugin/" />
<deny url="http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/" />
</dsmp-config>