For our project, we have a dependency on another internal library and this library has very very frequent releases. In the parent application, we want to always use the latest version of this dependency. With Maven 3.x, I did the following in the pom file
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
<configuration>
<includes>
<include>abc.def.xyz:exmaple-dep</include>
</includes>
</configuration>
</plugin>
But when I use the maven to fetch the latest versions, it is fetching latest versions of all dependencies. I tested this behaviour with the below command:
mvn versions:display-dependency-updates -Dincludes=abc.def.xyz:exmaple-dep
What would be the solution that versions-maven-plugin fetches the latest version only of the given dependency.