spring-native - 错误:找不到选项“InlineBeforeAnalysis”
问题描述
任何人都知道错误“错误:找不到选项'InlineBeforeAnalysis'”??当我尝试使用 spring-native 生成图像时出现该错误。
Error: Could not find option 'InlineBeforeAnalysis'. Use -H:PrintFlags= to list all available options.
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1
<profile>
<id>native-image</id>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>21.0.0</version>
<configuration>
<!-- The native image build needs to know the entry point to your application -->
<mainClass>com.mainpackage.Application</mainClass>
<buildArgs>
--no-fallback -H:+InlineBeforeAnalysis -H:+ReportExceptionStackTraces
</buildArgs>
</configuration>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
首先十分感谢。
解决方案
推荐阅读
- android - 无法修复 WindowManager$BadTokenException
- database - Wordpress 向选择性用户显示云端硬盘文件
- ionic-framework - ionic 3 标头未将 Authorizaqtion 'bearer "token"' 发送到服务器
- c# - 有没有办法“封顶” RoslynPad 的 Roslyn 的 IntelliSense?
- python - 如何在浏览器中显示数据?
- java - 如何在我的应用中检索微信联系人列表?
- jquery - 更改脚本中的数据属性
- c - C - 逐行读取文件的最佳方法
- php - Laravel Eloquent 通过关联模型的范围获取模型
- r - R:使用 lubridate 计算年龄