springboot项目Pom文件爆红Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found
maven
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
项目地址:https://gitcode.com/gh_mirrors/ma/maven

·
问题:
pom.xml文件里"spring-boot-maven-plugin" 报红;
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
解决方法:
第一步,指定版本号,然后刷新maven
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.0.RELEASE</version>
</plugin>
</plugins>
</build>
第二步,如果指定版本号后还是爆红,则清除IDEA缓存
操作步骤(File–>Invalidate Caches)




Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
最近提交(Master分支:5 天前 )
7a40d3c0
As discussed on Slack, the documentation of Maven Mixins is moved to site for better visibility (and easier to update, in terms of publishing, if needed). This PR removes the file in maven core. 2 天前
129dc529
Behavior:
- Keep only dependencies with transitive scopes (DependencyScope.isTransitive); null/empty treated as COMPILE
- Use MAIN_RUNTIME for dependency collection
- Drop all non-transitive scopes from consumer POM
5 天前
更多推荐
所有评论(0)