spring本机构建失败

ua4mk5z4  于 2021-07-14  发布在  Java
关注(0)|答案(0)|浏览(230)

我在跟着导游https://docs.spring.io/spring-native/docs/current/reference/htmlsingle/#getting-启动本机映像以使用本机映像maven插件构建本机windows可执行文件
命令`

mvnw -Pnative-image package

出现以下故障:

Error opening zip file or JAR manifest missing : C:\Java\graalvm-ce-java11-21.1.0\lib\svm\builder\svm.jar
Error occurred during initialization of VM
agent library failed to init: instrument
Error: Image build request failed with exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  42.568 s
[INFO] Finished at: 2021-04-26T00:13:59-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.graalvm.nativeimage:native-image-maven-plugin:21.1.0:native-image (default) on project demo: Execution of C:\Java\graalvm-ce-java11-21.1.0\lib\svm\bin\native-image.exe

缺少svm.jar,但我添加了一个maven依赖项。然而,它仍然未能在这一步中建立。
有人知道发生了什么事吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题