Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: kotlin-stdlib-common依赖文件变为module格式 #64

Open
3 tasks done
LeChocolatChaud opened this issue Jan 23, 2025 · 0 comments
Open
3 tasks done

bug: kotlin-stdlib-common依赖文件变为module格式 #64

LeChocolatChaud opened this issue Jan 23, 2025 · 0 comments

Comments

@LeChocolatChaud
Copy link

  • 确保您使用的是 最新开发版本 的 ZMusic 插件.
  • 确保您的问题尚未在 Issues 列表中提出.
  • 确保您的问题不是由于您的代码错误导致的.

描述 Bug

Kotlin的一个依赖kotlin-stdlib-common似乎从2.1.0-Beta2(24/10/14)开始从jar格式变为module格式,现有代码没有module格式依赖的获取方式(统一认为以jar格式下载),导致启动失败。

复现 Bug

  1. 创建新的paper服务端
  2. 加入最新开发版zmusic插件(v4)
  3. 启动服务器

系统信息

  • Minecraft 版本: 1.21.1
  • ZMusic 版本: zmusic-bukkit-4.0.0-dev.33cdfd5
  • 操作系统版本: Linux kaituo 6.8.0-51-generic x86_64; Ubuntu 24.04.1 LTS
  • 服务端版本: paper-1.21.1-131

附log:

 [12:25:37 INFO]: [ZMusic] Loading libraries, please wait...
�[12:25:38 WARN]: java.io.IOException: Unable to find download for org.jetbrains.kotlin:kotlin-stdlib-common:2.1.0 (https://mirrors.huaweicloud.com/repository/maven)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:208)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:225)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromPom(DependencyDownloader.java:275)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromInputStream(DependencyDownloader.java:296)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromInputStream(DependencyDownloader.java:282)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.RuntimeEnv.loadDependency(RuntimeEnv.java:132)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.RuntimeEnv.loadDependency(RuntimeEnv.java:88)
~[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.RuntimeEnv.setup(RuntimeEnv.java:36)
w[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.ZMusicRuntime.setup(ZMusicRuntime.java:52)
v[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.BukkitPlugin.onLoad(BukkitPlugin.java:25)
�[12:25:38 WARN]:       at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59)
�[12:25:38 WARN]:       at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18)
p[12:25:38 WARN]:       at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39)
w[12:25:38 WARN]:       at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40)
Z[12:25:38 WARN]:       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:547)
i[12:25:38 WARN]:       at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:292)
_[12:25:38 WARN]:       at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1214)
b[12:25:38 WARN]:       at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329)
F[12:25:38 WARN]:       at java.base/java.lang.Thread.run(Thread.java:1583)
�[12:25:38 WARN]: Caused by: java.io.FileNotFoundException: https://mirrors.huaweicloud.com/repository/maven/org/jetbrains/kotlin/kotlin-stdlib-common/2.1.0/kotlin-stdlib-common-2.1.0.jar
�[12:25:38 WARN]:       at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:2022)
[12:25:38 WARN]:        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1617)
[12:25:38 WARN]:        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223)
[12:25:38 WARN]:        at java.base/java.net.URL.openStream(URL.java:1325)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.utils.IO.downloadFile(IO.java:94)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.Repository.downloadFile(Repository.java:55)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:204)
[12:25:38 WARN]:        ... 18 more
+[12:25:38 WARN]: java.io.IOException: Unable to find download for org.jetbrains.kotlin:kotlin-stdlib-common:2.1.0 (https://mirrors.huaweicloud.com/repository/maven)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:208)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:225)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromPom(DependencyDownloader.java:275)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromInputStream(DependencyDownloader.java:296)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromInputStream(DependencyDownloader.java:282)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:193)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:225)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromPom(DependencyDownloader.java:275)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromInputStream(DependencyDownloader.java:296)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependencyFromInputStream(DependencyDownloader.java:282)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.RuntimeEnv.loadDependency(RuntimeEnv.java:132)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.RuntimeEnv.loadDependency(RuntimeEnv.java:88)
~[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.RuntimeEnv.setup(RuntimeEnv.java:36)
�[12:25:38 WARN]:       at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.ZMusicRuntime.setup(ZMusicRuntime.java:52)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.BukkitPlugin.onLoad(BukkitPlugin.java:25)
[12:25:38 WARN]:        at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59)
[12:25:38 WARN]:        at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18)
[12:25:38 WARN]:        at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39)
[12:25:38 WARN]:        at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:40)
[12:25:38 WARN]:        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:547)
[12:25:38 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:292)
[12:25:38 WARN]:        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1214)
[12:25:38 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329)
[12:25:38 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1583)
[12:25:38 WARN]: Caused by: java.io.FileNotFoundException: https://mirrors.huaweicloud.com/repository/maven/org/jetbrains/kotlin/kotlin-stdlib-common/2.1.0/kotlin-stdlib-common-2.1.0.jar
[12:25:38 WARN]:        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:2022)
[12:25:38 WARN]:        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1617)
[12:25:38 WARN]:        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223)
[12:25:38 WARN]:        at java.base/java.net.URL.openStream(URL.java:1325)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.utils.IO.downloadFile(IO.java:94)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.Repository.downloadFile(Repository.java:55)
[12:25:38 WARN]:        at zmusic-bukkit-4.0.0-dev.33cdfd5.jar//me.zhenxin.zmusic.dependencies.DependencyDownloader.loadDependency(DependencyDownloader.java:204)
[12:25:38 WARN]:        ... 23 more
,[12:25:38 INFO]: [ZMusic] Libraries loaded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant