I'm trying to use Versions Maven Plugin, together with spring-boot
.
Problem: when running versions:display-dependency-updates
to autoecheck for latest dependencies, I'm not only getting the updates defined in my pom.xml
, but also all inherited dependencies from spring-boot-starter-parent
.
Question: how can I prevent inheritance and just show the self-defined dependencies?
<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>
At best, the plugin would inform me of updates similar to:
spring-boot-starter-parent.....2.0.0 -> 2.0.3
cxf-rt-frontend-jaxws..........3.0.0 -> 3.2.6
But instead, I'm getting output an all dependencies inherited from the spring parent.