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

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

     [ https://issues.apache.org/jira/browse/MNG-7410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MNG-7410.
-------------------------------
    Fix Version/s:     (was: wontfix-candidate)
       Resolution: Invalid

Invalid input, use Google: https://maven.apache.org/settings.html and don't waste people's time.

> 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\KI0V\.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\apache-maven-3.6.2\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)