微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

错误:找不到选项“InlineBeforeAnalysis”

如何解决错误:找不到选项“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>

非常感谢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。