From f79a4e4ff3e5ced786a96e7557d9f71b95aa1f12 Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 16 Jul 2022 20:51:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(extension):=20=E5=9C=A8=20MavenReposit?= =?UTF-8?q?oryExtensionFinder=20=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E5=8C=85=E4=BF=A1=E6=81=AF=E6=97=A5=E5=BF=97?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当初写的时候没留意这个问题, 结果最近给坑了, 所以补个日志, 打印出 Maven 搜索器所解析出来的构件信息. --- scalabot-app/src/main/kotlin/ExtensionFinders.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scalabot-app/src/main/kotlin/ExtensionFinders.kt b/scalabot-app/src/main/kotlin/ExtensionFinders.kt index b161767..22cbcbb 100644 --- a/scalabot-app/src/main/kotlin/ExtensionFinders.kt +++ b/scalabot-app/src/main/kotlin/ExtensionFinders.kt @@ -283,6 +283,12 @@ internal class MavenRepositoryExtensionFinder( return emptySet() } + log.info { + "已从 Maven 仓库 `${extensionArtifactResult.repository.id}` 中找到" + + "扩展包 `${resolvedArtifact.groupId}:${resolvedArtifact.artifactId}` " + + "版本号 `${resolvedArtifact.version}`." + } + val request = DependencyRequest( CollectRequest(Dependency(extResolvedArtifact, null), remoteRepositories), ScopeDependencyFilter(setOf("runtime", "compile", "provided"), null)