Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-271

Dependency convergence rule is very slow in larger projects

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: Standard Rules
    • Labels:
      None
    • Environment:

      Description

      I noticed that DependencyConvergence can take up to 10 seconds or even more in modules with almost 300 direct and transitive dependencies (reported by dependency:tree).
      These modules are part of a JEE project based on JBoss EAP 6.4 which imports a couple of EAP BOMs. Unfortunately I am not allowed to share this project.

      I profiled the rule via VisualVM and these are the top 5 hotspots:

      The number of parseVersion calls seems excessive.

      See attached visualvm_settings.xml for reference.

        Attachments

        1. visualvm.PNG
          20 kB
          Falko Modler
        2. visualvm_settings.PNG
          36 kB
          Falko Modler

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              famod Falko Modler
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: