Skip to content

Commit 907d53a

Browse files
committed
[MNG-7118] block HTTP repositories by default
1 parent 899465a commit 907d53a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apache-maven/src/conf/settings.xml

+9-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ under the License.
4343
| values (values used when the setting is not specified) are provided.
4444
|
4545
|-->
46-
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
46+
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
4747
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
48-
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
48+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
4949
<!-- localRepository
5050
| The path to the local repository maven will use to store artifacts.
5151
|
@@ -156,6 +156,13 @@ under the License.
156156
<url>http://my.repository.com/repo/path</url>
157157
</mirror>
158158
-->
159+
<mirror>
160+
<id>maven-default-http-blocker</id>
161+
<mirrorOf>external:http:*</mirrorOf>
162+
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
163+
<url>http://0.0.0.0/</url>
164+
<blocked>true</blocked>
165+
</mirror>
159166
</mirrors>
160167

161168
<!-- profiles

0 commit comments

Comments
 (0)