Overriding managed version 2.10 for maven-dependency-plugin

Overriding managed version 2.10 for maven-dependency-plugin

使用spring boot时,在pom中引入maven-dependency-plugin,注明版本,报警告
Overriding managed version 2.10 for maven-dependency-plugin

Overriding managed version 2.10 for maven-dependency-plugin_第1张图片

1.Ctrl+单击,打开项目所依赖的parent:spring-boot-starter-parent对应的pom文件
Overriding managed version 2.10 for maven-dependency-plugin_第2张图片

2.再打开spring-boot-starter-parent的parent:spring-boot-dependencies的pom文件
Overriding managed version 2.10 for maven-dependency-plugin_第3张图片

3.在spring-boot-dependencies的pom中发现maven-dependency-plugin的默认版本是2.10
1595119-20190227100739194-386961535.png

spring boot为每个版本所依赖的组件定义了最佳版本,在项目中覆盖默认版本会告警.
如果没有特殊原因,使用默认版本,删除告警的这一行即可.
2.5

转载于:https://www.cnblogs.com/qode/p/10439868.html

你可能感兴趣的:(java)