You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Richard Atkins (JIRA)" <ji...@apache.org> on 2019/03/29 04:13:00 UTC

[jira] [Created] (MENFORCER-332) Performance regression in bannedDependencies rule

Richard Atkins created MENFORCER-332:
----------------------------------------

             Summary: Performance regression in bannedDependencies rule
                 Key: MENFORCER-332
                 URL: https://issues.apache.org/jira/browse/MENFORCER-332
             Project: Maven Enforcer Plugin
          Issue Type: Bug
          Components: Standard Rules
    Affects Versions: 1.4, 1.3
            Reporter: Richard Atkins


Since adding maven-dependency-tree as a dependency, bannedDependencies has had a significant performance regression when it comes to building the dependency tree to check. In a multi-module project with more than one bannedDependencies rule defined, build times are significantly slower: one project using over 100 modules and 20 bannedDependencies rules takes 10 mins just to run maven validate, while using maven-enforcer-plugin 1.1.1 the build time is only 1 min.

The rule should be updated to cache the dependency tree for a project, and to reuse it across rules for the same project. To support parallel builds correctly, the cache will also have to support caching more than one dependency tree at a time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)