Closed Chowhound-ch closed 1 year ago
那用 simbot-component-mirai-boot的v3.0.0.0-beta.2
到底是行还是不行
以及提供详细的依赖配置文件,比如 pom.xml
v3.0.0.0-beta.2不行(复制忘改了,下面想说v3.0.0.0-beta.1可以正常注册bot来着) yml: 目录结构: pom.xml:
只将simbot-component-mirai-boot从v3.0.0.0-beta.2改到v3.0.0.0-beta.1就能正常注册bot
问题未复现,尝试:
simbot-component-mirai-boot
更改为 simbot-component-mirai-core
simbot.bot-configuration-resources
等配置属性不应存在黄色警告)感谢提供思路,问题解决 导入simbot-component-mirai-boot的v3.0.0.0-beta.2时未正常引入simbot-component-mirai-core maven依赖中无法找到且找不到对应jar包 下为导入v3.0.0.0-beta.1时正常运行的情况
手动导入simbot-component-mirai-core的v3.0.0.0-beta.2即可正常运行
simbot-component-mirai-boot
中是存在对 simbot-component-mirai-core
的引用的 (参考),可能只是maven没成功下载此依赖导致的。不过直接使用 -core
就可以了,组件依赖的引用已经不再需要使用 -boot
了。
版本号
v3.0.0-M1
附加版本
simbot-component-mirai-boot:v3.0.0.0-beta.2
问题描述
不管是simbot默认扫描还是yml里配置过simbot包扫描路径都扫描不到resources/simbot-bots/default.bot文件,控制台日志:
而将simbot-component-mirai-boot换成v3.0.0.0-beta.2则可正常注册bot,控制台日志:
复现方式
使用simbot-component-mirai-boot的v3.0.0.0-beta.2版本
相关日志
其他补充
No response