Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-470

Don't search custom repositories on default and link dependencies to repositories.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-alpha-3
    • None
    • None
    • all

    Description

      When an additional repository is defined in the pom, it gets prepended to the search
      path.

      I'd like to add an option to the repository definition (both for plugin and normal artifacts)
      that says something like 'dont-consult-on-default'.

      Then add another option to dependencies and plugin references like

      <repo>repo1</repo> (optional)

      that states which repository should be consulted.

      A part of the problem is that when plugin developers host their own plugins,
      the repository is prepended to the repository list, and for every artifact of the same
      type (normal or plugin) the repository gets checked first, and finally ibiblio. This causes
      unnecessary load on the plugin providers repositories.

      Further, if a plugin gets resolved to a specific repository, some dependencies
      are most likely also on that repository. If the repository the plugin is hosted on is
      listed as a 'normal' repository then one could specify some dependencies to
      that repository in the pom, so it only gets consulted when needed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kenney Kenney Westerhof
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: