diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/util/SelfDependencyPatcher.java b/HMCL/src/main/java/org/jackhuang/hmcl/util/SelfDependencyPatcher.java index 2f9784e6b..b1ab83e3a 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/util/SelfDependencyPatcher.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/util/SelfDependencyPatcher.java @@ -88,7 +88,7 @@ public final class SelfDependencyPatcher { static class DependencyDescriptor { - private static final String REPOSITORY_URL = "https://maven.aliyun.com/repository/central/"; + private static final String REPOSITORY_URL = System.getProperty("hmcl.openjfx.repo", "https://maven.aliyun.com/repository/central/"); private static final Path DEPENDENCIES_DIR_PATH = HMCL_DIRECTORY.resolve("dependencies"); private static String currentArchClassifier() { diff --git a/README.md b/README.md index d93f25f23..cad2e02df 100644 --- a/README.md +++ b/README.md @@ -53,3 +53,4 @@ Make sure you have Java installed with JavaFX 8 at least. Liberica full JDK 8~16 |`-Dhmcl.version.override=`|Override the version number.| |`-Dhmcl.update_source.override=`|Override the update source.| |`-Dhmcl.authlibinjector.location=`|Use specified authlib-injector (instead of downloading one).| +|`-Dhmcl.openjfx.repo=`|Download OpenJFX from specified Maven repository. Default value is `https://maven.aliyun.com/repository/central/`.|