Skip to content

Commit

Permalink
Override the default Maven repository when testing against old Maven …
Browse files Browse the repository at this point in the history
…versions

.. because otherwise it will attempt to use HTTP rather than HTTPS,
which is rejected by `repo1.maven.org` for security reasons.
  • Loading branch information
trustin committed Nov 7, 2022
1 parent 88bae1e commit 211db49
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/build/test-pom.xml
Expand Up @@ -10,6 +10,35 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<!--
Override the default repository so that the old versions of Maven do not use
the insecure HTTP URLs.
-->
<repositories>
<repository>
<id>central-overridden</id>
<name>Maven Central</name>
<url>https://repo1.maven.org/maven2/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central-overridden</id>
<name>Maven Central</name>
<url>https://repo1.maven.org/maven2/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
</releases>
</pluginRepository>
</pluginRepositories>

<dependencies>
<dependency>
<groupId>io.netty</groupId>
Expand Down

0 comments on commit 211db49

Please sign in to comment.