fat*_*ari 17 intellij-idea maven spring-boot
我的项目中有一个新错误,位于 pom.xml 文件中。我该如何解决?
IntelliJ idea 中显示的错误如下:
Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found
Run Code Online (Sandbox Code Playgroud)
小智 77
添加以下代码
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${parent.version}</version>
</plugin>
Run Code Online (Sandbox Code Playgroud)
然后单击屏幕截图所示的图标,加载 pom.xml 文件中的 Maven 更改
小智 23
从 Intelli J 的首选项中,导航到“构建、执行、部署 > 构建工具 > Maven”,选中“使用插件注册表”,然后单击“确定”。
然后“File > Invalidate Caches / Restart”重新加载Intelli J。错误将自动消失。
小智 12
我有同样的问题。今年夏天,Intellij 突然开始抛出这个错误,但构建通过了。我只需要指定插件的版本,它就停止抛出这个错误。
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.4.RELEASE</version>
</plugin>
Run Code Online (Sandbox Code Playgroud)
小智 11
我在使用 IntelliJ 版本 2020.2.4 时遇到了同样的问题。解决方案是编辑 pom.xml 文件并指定 Spring-Boot Maven 插件的版本,语法如下:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.4.0</version>
</plugin>
Run Code Online (Sandbox Code Playgroud)
正如上一个答案中所建议的那样,此 Intelli-J 版本无法识别版本号后面的“RELEASE”关键字。
| 归档时间: |
|
| 查看次数: |
17842 次 |
| 最近记录: |