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

Guillaume Nodet commented on MNG-7801:
--------------------------------------

It really feels wrong to change the CLI to reflect to real behaviour, and this 
behaviour is definitely not intuitive nor desired imho.

The {{-U}} option applies to both released/snapshots artifacts/metadata, and 
comes from maven 2.x which did not had timestamped snapshots.  With 
introduction of those timestamped artifacts, artifacts should really never be 
updated and what is actually wanted is only to change the policy to check for 
snapshots.  So what we really want is to change the update policy on the 
metadata.

> Clean doc for repositories policies
> -----------------------------------
>
>                 Key: MNG-7801
>                 URL: https://issues.apache.org/jira/browse/MNG-7801
>             Project: Maven
>          Issue Type: Task
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> The model doc (and other)  indicates that the default update policy is daily, 
> but no value is set by default, and the resolver assumes {{never}} as a 
> default (see 
> [https://github.com/apache/maven-resolver/blob/97dfd1c2b9deb15734d5e401807e55cd0498332a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultUpdatePolicyAnalyzer.java#L91)]
>  
> Also, the CLI options for {{-U}} and {{-nsu}} indicates that those are for 
> snapshots, while they actually affect all policies, so those should be 
> renamed and their doc fixed.



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

Reply via email to