Closed Enderman-Teleporting closed 1 year ago
并未重复引入咳特灵 具体配制见下
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>simbot.example</groupId>
<artifactId>simbot-boot-normal-java</artifactId>
<version>0</version>
<properties>
<java.version>17</java.version>
<simbot.version>3.0.0-M5</simbot.version>
<simbot-mirai.version>3.0.0.0-beta.6</simbot-mirai.version>
</properties>
<dependencies>
<dependency>
<groupId>love.forte.simbot.boot</groupId>
<artifactId>simboot-core</artifactId>
<version>${simbot.version}</version>
</dependency>
<dependency>
<groupId>love.forte.simbot.component</groupId>
<artifactId>simbot-component-mirai-core</artifactId>
<version>${simbot-mirai.version}</version>
</dependency>
<dependency>
<groupId>love.forte</groupId>
<artifactId>catcode</artifactId>
<version>1.0.0-BETA.1</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.1</version>
<classifier>jdk15</classifier>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-lang/commons-lang -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.sf.ezmorph/ezmorph -->
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<!-- main方法所在类。 -->
<mainClass>simbot.example.Main</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
自行检查各依赖中是否存在不同版本的Kotlin引用并排除它们,例如 catcode
使用的是大约 v1.4.x
的Kotlin。
删除了依赖:CatCode 其他应该都是用Java写的 错误日志:(powershell)
Windows PowerShell
版权所有(C) Microsoft Corporation。保留所有权利。
安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows
PS C:\Users\wyh> cd desktop
PS C:\Users\wyh\desktop> java -jar qbot.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
java.io.IOException: 系统找不到指定的路径。
at java.base/java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.base/java.io.File.createNewFile(File.java:1043)
at simbot.example.tools.properties_settler.settle(properties_settler.java:12)
at simbot.example.Main.main(Main.java:19)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
PS C:\Users\wyh\desktop>
kotlin.time.DurationUnit
类丢失问题似乎已经解决。
此问题与框架无关,请自行检查相关代码
版本号
v3.0.0
附加版本
No response
问题描述
成功springboot打包.但提示缺失依赖 见下
复现方式
`package simbot.example;
import love.forte.simboot.annotation.Listener; import love.forte.simboot.core.SimbootApp; import love.forte.simboot.core.SimbootApplication; import love.forte.simbot.event.internal.BotRegisteredEvent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import simbot.example.tools.properties_settler;
@SimbootApplication public class Main {
} ` 启动类,demo直接拉的,但是报错,据日志应为第18行即context.launchBlocking()那行
相关日志
其他补充
No response