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

Native Build Tools构建本地可执行文件 报错 #4994

Closed
tiro8183 opened this issue Dec 6, 2022 · 11 comments
Closed

Native Build Tools构建本地可执行文件 报错 #4994

tiro8183 opened this issue Dec 6, 2022 · 11 comments
Labels

Comments

@tiro8183
Copy link

tiro8183 commented Dec 6, 2022

当前使用版本(必填,否则不予处理)

JDK Version(required): graalvm-ce-java17-22.3.0

SpringBoot Version(required): 3.0.0

mybatis-plus-boot-starter: 3.5.2.7-SNAPSHOT

该问题是如何引起的?(确定最新版也有问题再提!!!)

Native Build Tools构建本地可执行文件时出现

重现步骤(如果有就写完整)

mvn clean native:compile -Pnative
Native Build Tools构建本地可执行文件时出现

报错信息

image

@tiro8183
Copy link
Author

tiro8183 commented Dec 6, 2022

这是我的项目:https://github.com/tiro8183/shape2database.git

@linghengqian
Copy link
Contributor

@LeeMeo
Copy link

LeeMeo commented Dec 6, 2022

我们最近也同样在尝试springboot3.0的native image build,看到mybatis-plus很多地方目前都不支持,目前打算回退到mybatis框架。

@LeeMeo
Copy link

LeeMeo commented Dec 7, 2022

查了一下,目前基本确定是由于mybatis3目前并不支持AOT编译,已经有人提出了这个issue,见链接mybatis/mybatis-3#2747

@the-tsing
Copy link

不是mybatis的问题,我将mybatisplus换成mybatis 3.5.10再编译,结果没问题能通过

@LeeMeo
Copy link

LeeMeo commented Dec 7, 2022

不是mybatis的问题,我将mybatisplus换成mybatis 3.5.10再编译,结果没问题能通过

确定执行的是springboot3.0的mvn -Pnative native:compile么?还是只是mvn compile?

@cuihj
Copy link

cuihj commented Dec 8, 2022

不是mybatis的问题,我将mybatisplus换成mybatis 3.5.10再编译,结果没问题能通过

确定执行的是springboot3.0的mvn -Pnative native:compile么?还是只是mvn compile?

mybatis 没问题

@gogolin001
Copy link

确定就是mybatis的问题,他不支持aot编译。

@lanPeiYu
Copy link

lanPeiYu commented Mar 2, 2023

mybatis 3.5.12 may fix this problems

@developerworks
Copy link

There is no latest artifacts in maven central repo after mybatis-plus-boot-starter/3.5.3.1

@nieqiurong
Copy link
Contributor

#5527 统一至此处讨论

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants