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

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

Actually, it seems the default is {{daily}}.  The reason for the mix-up is that 
the default value in the resolver is {{never}}, but maven does never pass 
{{null}} to the resolver, as indicated by 
https://github.com/apache/maven/blob/8150c62749a637a98fbb9489fb8162034956220b/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultRepositoryFactory.java#L68,
 where {{daily}} is used by default.

> 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)]
>  



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

Reply via email to