【发布时间】:2018-09-10 14:21:38
【问题描述】:
我正在尝试将Versions Maven Plugin 与spring-boot 一起使用。
问题:当运行versions:display-dependency-updates 来自动检查最新的依赖项时,我不仅获得了在我的pom.xml 中定义的更新,而且还获得了从spring-boot-starter-parent 继承的所有依赖项。
问题:如何防止继承,只显示自定义的依赖关系?
<project>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
</parent>
<properties>
<cxf.version>3.0.0</cxf.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
</dependencies>
</project>
插件最多会通知我类似的更新:
spring-boot-starter-parent.....2.0.0 -> 2.0.3
cxf-rt-frontend-jaxws..........3.0.0 -> 3.2.6
但是,我得到的输出是从 spring 父级继承的所有依赖项。
【问题讨论】:
标签: java spring maven versions-maven-plugin