[MENFORCER-494] Allow banning dynamic versions in whole tree by JimmyAx · Pull Request #294 · apache/maven-enforcer (original) (raw)

This commit introduces the possibility of banning dynamic versions in the entire dependency tree before Maven computes the final dependency tree. If a dependency exists multiple times in the dependency tree the plugin will not detect any dynamic versions as long as the final dependency tree does not have any dynamic versions.

In this example the dependency A -> C -> D is not detected with a dynamic version unless the verbose parameter has been set in this pull request.

A
+- B
|  \- D version 1.0
\- C
   \- D version [1.0,2.0)

Following this checklist to help us incorporate your
contribution quickly and easily:

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.