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

enforce goal should require dependency collection, not resolution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0
    • None
    • Plugin
    • None

    Description

      Enforce goal presently has @requiresDependencyResolution("test"), which forces all dependencies to be downloaded for a project at the start of the lifecycle (e.g. if the plugin is bounded to initialize). If a project has really large dependencies that are resolved on an as-needed basis (e.g. by the assembly plugin), inserting the enforcer plugin (e.g. to enforce certain properties being set) causes everything to be downloaded.

      The goal should use the new Maven 3.0 requiresDependencyCollection annotation, which should be sufficient for all existing rules (banned dependencies and such). Any investigation of the contents of the dependencies themselves should be an on-demand resolve by the enforcer.

      Attachments

        1. menforcer113.patch
          0.6 kB
          Oleg Rekutin

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              orekutin Oleg Rekutin
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: