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

Fix behaviour of the maven update policy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.0.x-candidate
    • None
    • None

    Description

      The update policy can be specified using the -U (force update) or -nsu (no update) options, but those options change the whole repository session policy and override any settings on the repositories.

      This means that if -U is set, the resolver will attempt to check already downloaded artifacts.  This is wrong and the behaviour has been inherited from maven 2.x.

      What we really wants (and what's implied by the name of the options and docs) is to check for new artifacts / updates, so this mainly affect version resolution and not artifact resolution.

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: