You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "dino b (Jira)" <ji...@apache.org> on 2022/02/09 20:21:00 UTC

[jira] [Commented] (MNG-7410) snapshotPolicy tag throws a warning

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

dino b commented on MNG-7410:
-----------------------------

fo

> snapshotPolicy tag throws a warning
> -----------------------------------
>
>                 Key: MNG-7410
>                 URL: https://issues.apache.org/jira/browse/MNG-7410
>             Project: Maven
>          Issue Type: Bug
>            Reporter: dino b
>            Priority: Major
>
> The tag
> {code:java}
> <snapshotPolicy>{code}
>  throws a warning, yet there is no documentation or instruction on what is this policy used for and how it should be setup correctly.  This tags is part of .m2/server.xml file created by maven.
> {code:java}
> [WARNING]
> [WARNING] Some problems were encountered while building the effective settings
> [WARNING] Unrecognised tag: 'snapshotPolicy' (position: START_TAG seen ...</layout>\n    \t\t\t<snapshotPolicy>... @319:24)  @ C:\Users\user\.m2\settings.xml, line 319, column 24
> [WARNING]{code}
> maven version
>  
> {code:java}
> mvn -version
> Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T08:06:16-07:00)
> Maven home: C:\Maven\maven\bin\..
> Java version: 11, vendor: Oracle Corporation, runtime: C:\Program Files\Java\openjdk_11
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> {code}
> Several unofficial online resources suggest how to get rid of this warning but none provide any explanation, therefore, giving a not very trustful impression of its validity and correctness.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)