You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Roy Lyons (JIRA)" <ji...@apache.org> on 2015/04/28 17:57:06 UTC

[jira] [Commented] (MNG-4537) --update-snapshots command line option flag is misleading, as it actually updates releases too

    [ https://issues.apache.org/jira/browse/MNG-4537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14517265#comment-14517265 ] 

Roy Lyons commented on MNG-4537:
--------------------------------

:) personally I like this feature.  I didn't think it was a bug.  This way when my developers have a failure to download a dependency because they had to update JAVA *yet again* because of the ongoing quarterly critical security patches from Oracle -- I can simply tell them to add a -U on their next run to expire the failure cache in their .m2

> --update-snapshots command line option flag is misleading, as it actually updates releases too
> ----------------------------------------------------------------------------------------------
>
>                 Key: MNG-4537
>                 URL: https://issues.apache.org/jira/browse/MNG-4537
>             Project: Maven
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 2.0.9, 2.0.10, 2.2.1, 3.0-alpha-5, 3.0-alpha-6
>            Reporter: Matthew McCullough
>             Fix For: Issues to be reviewed for 3.x
>
>         Attachments: remove-misleading-updatesnapshots-option.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)