Maven
  1. Maven
  2. MNG-4537

--update-snapshots command line option flag is misleading, as it actually updates releases too

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.9, 2.0.10, 2.2.1, 3.0-alpha-5, 3.0-alpha-6
    • Component/s: Command Line
    • Labels:
      None
    • Complexity:
      Intermediate
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      Had a discussion with Brett Porter, Brian Fox, and Benjamin Bentmann on IRC about how the --update-snapshots command line option is misleading. I, as well as some of my students, we using -up, expecting downloads that previously failed to be tried again. However, that flag only checks for metadata updates to see if a newer version of the plugin has been released. What we were after is the -U flag (synonymous with --update-snapshots) which also checks again remotely for SNAPSHOT and RELEASE downloads that previously failed.

      Brett and Brian suggested that we either deprecate the old --update-snapshots long option, but that's not entirely possible since the short and long options are tied together. So, as a compromise solution, I'm indicating that the --update-snapshots option flag (name) may go away in the future and adding a migrate-to option called --update-all which was suggested in the above IRC conversation. Functionally, this long flag performs the same operation as --update-snapshots, but the name much more effectively communicates that it updates all artifacts from remote repos, not just snapshots.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Matthew McCullough
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: