GitHub user jsenko opened a pull request: https://github.com/apache/maven-enforcer/pull/2
[MENFORCER-138] Rule to ban all transitive dependencies In some projects it's desirable to have all dependencies specified in pom. It would be nice to have an enforcer rule that would ban all transitive dependencies so that the user could either add the transitive dependency directly to the pom (if it's actually needed), or exclude the dependency. http://jira.codehaus.org/browse/MENFORCER-138 This rule will ban all transitive dependencies, unless configured otherwise. The configuration works identically to http://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html . User can exclude certain dependencies from being checked (anywhere in the dependency tree) add also add exceptions to the excludes for finer configuration (see javadoc for details). If it fails, the rule will generate message showing dependencies which caused the failure and their descendants in a tree, with info which dependencies were excluded in that branch. Alternatively, custom message can be used. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jsenko/maven-enforcer trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/maven-enforcer/pull/2.patch ---- commit d7ba589ea198146a3a5aabd4b202557be1d852cc Author: jsenko <jse...@redhat.com> Date: 2012-08-24T04:34:21-07:00 Updated pom.xml commit 8fdb711023c97b1e7dce0b88505f569ed64b8d72 Author: jsenko <jse...@redhat.com> Date: 2012-08-24T04:35:04-07:00 Created ArtifactMatcher commit bdc5c66050218a2dcbf8760080055ff2658f3d75 Author: jsenko <jse...@redhat.com> Date: 2012-08-24T04:36:10-07:00 Created BanTransitiveDependencies enforcer rule commit b481246a38afa19cd7134aaf9745740a4f9894d5 Author: jsenko <jse...@redhat.com> Date: 2012-08-27T06:48:52-07:00 Updated BanTransitiveDependencies commit 2f4767498259134b7bf91054795faff48659ea53 Author: jsenko <jse...@redhat.com> Date: 2012-08-27T06:49:43-07:00 Updated ArtifactMatcher commit 8f321d1070624668a1c68879f868702ff4735aaf Author: jsenko <jse...@redhat.com> Date: 2012-08-27T06:51:20-07:00 Created test for ArtifactMatcher commit 93cf4d5cbff42cdbfc67c8b419cc988d9a3127ce Author: jsenko <jse...@redhat.com> Date: 2012-08-27T06:53:35-07:00 Added license comment. commit 481e9a0b744dd7e366efc75b3b7a69602c645309 Author: jsenko <jse...@redhat.com> Date: 2012-08-27T07:05:23-07:00 Minor whitespace and comment modifications. ---- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org