fix(extension): 修复 Maven 仓库扩展搜索器无法从第三方仓库获取扩展的问题.

由于在加载仓库配置时, 未设置仓库 Id, 导致 Aether 将仓库排除, 进而导致无法通过第三方仓库获取插件.
改动后, 将在未配置仓库 Id 的情况下, 为其生成一个 Id 名称.
This commit is contained in:
2022-05-18 15:40:33 +08:00
parent a0afde52ac
commit 0a5313e94a
3 changed files with 44 additions and 4 deletions

View File

@ -155,7 +155,7 @@ internal object MavenRepositoryConfigSerializer
)
}
is JsonPrimitive -> {
MavenRepositoryConfig(URL(json.asString))
MavenRepositoryConfig(url = URL(json.asString))
}
else -> {
throw JsonParseException("Unsupported Maven warehouse configuration type.")