@Override
        protected URLConnection openConnection(Dependency dependency) throws IOException {
            URLConnection connection = super.openConnection(dependency);
            connection.setRequestProperty("User-Agent", "luckperms");

            // Set a connect/read timeout, so if the mirror goes offline we can fallback
            // to Maven Central within a reasonable time.
            connection.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(5));
            connection.setReadTimeout((int) TimeUnit.SECONDS.toMillis(10));

            return connection;
        }
Maven Central mirror repository.

<p>This is used to reduce the load on repo.maven.org.</p>

<p>Although Maven Central is technically a CDN, it is meant for developer use,
not end-user products. It is trivial and not very expensive for us to provide a
mirror, which will absorb any traffic caused by LP.</p>

<p>LuckPerms will fallback to the real-thing if the mirror ever goes offline.
Retrieved content is validated with a checksum, so there is no risk to integrity.</p>
common/src/main/java/me/lucko/luckperms/common/dependencies/DependencyRepository.java