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

Tamas Cservenak commented on MNG-7803:
--------------------------------------

I'd deprecated the existing ones (emit warning and all that).
{noformat}
-nsu,--no-snapshot-updates             Suppress SNAPSHOT updates

-U,--update-snapshots                  Forces a check for missing
                                       releases and updated snapshots on
                                       remote repositories {noformat}
Thext for -nsu is totally off (should be "Supress ANY updates"), while -U is 
kinda conflicting with {{updatesnapshots}} as "forces check for missing 
releases"?

Instead, introduce:
 * -au "always update" => behave as -U today (in maven, so set session level 
policy "always")
 * -nu "never update" => behave as -nsu today (in maven, so set session level 
policy "never")
 * and add a resolver config (new, for example 
{{{}aether.updateCheckManager.applyPolicy{}}}) that controls whether is update 
policy applied to "all" (artifact and metadata, as today) or "metadata" only 
(default to "metadata")

This would mean, that CLI line like {{-au 
-Daether.updateCheckManager.applyPolicy=all}} in maven 4 would result as -U is 
in Maven3 today.

> Deprecate -U and -nsu and provide correct options reflecting the real 
> behaviour
> -------------------------------------------------------------------------------
>
>                 Key: MNG-7803
>                 URL: https://issues.apache.org/jira/browse/MNG-7803
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> The CLI options for {{-U}} and {{-nsu}} indicates that those are for 
> snapshots, while they actually affect version resolution, so those should be 
> renamed and their doc fixed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to