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 2020/10/17 18:49:00 UTC

[jira] [Comment Edited] (MNG-5506) Master override of checksumPolicy

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

Michael Osipov edited comment on MNG-5506 at 10/17/20, 6:48 PM:
----------------------------------------------------------------

So there are the command line parameters:

 -C, --strict-checksums                  Fail the build if checksums don't match
 -c, --lax-checksums                      Warn if checksums don't match

This is how you would catch it globally

And you can control the checksum policy in your POM by enumerating your repositories and controlling the policy with a property. But you cannot catch control them transitively without using the CLI parameter, or using a mirror pointing to a repository manager and controlling the policy there. So I believe  you have what you need to control the policy globally.


was (Author: jvanzyl):
So there are the command line parameters:

 -C,--strict-checksums                  Fail the build if checksums don't match
 -c,--lax-checksums                      Warn if checksums don't match

This is how you would catch it globally

And you can control the checksum policy in your POM by enumerating your repositories and controlling the policy with a property. But you cannot catch control them transitively without using the CLI parameter, or using a mirror pointing to a repository manager and controlling the policy there. So I believe  you have what you need to control the policy globally.

> Master override of checksumPolicy
> ---------------------------------
>
>                 Key: MNG-5506
>                 URL: https://issues.apache.org/jira/browse/MNG-5506
>             Project: Maven
>          Issue Type: Sub-task
>            Reporter: Marcin Wisnicki
>            Priority: Major
>
> There should be a property usable both from command line and pom to override checksumPolicy for all repositories.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)