(即Spring Boot 3.3.5 与 Maven 版本不兼容的问题)
在开发基于 Spring Boot 的项目时,我们经常会遇到各种各样的构建和编译问题。其中一个常见的问题是当使用特定版本的 spring-boot-starter-parent
时,Maven 报告插件不兼容的错误。本文将详细介绍这个问题的原因以及如何解决它。
问题描述
在使用 spring-boot-starter-parent
版本 3.3.5
构建项目时,遇到了以下编译错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project qiniuyun-oss-spring-boot-autoconfigure: The plugin org.apache.maven.plugins:maven-compiler-plugin:3.13.0 requires Maven version 3.6.3 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
然而,当我们把 spring-b