Maven checksum failed

后端 未结 5 1764
隐瞒了意图╮
隐瞒了意图╮ 2021-02-07 09:39

I am working on a project that uses Maven as the build tool. I am using version 2.2.1 of the tool. Recently a coworker mentioned that he couldn\'t build the project because of c

5条回答
  •  名媛妹妹
    2021-02-07 09:58

    The artifact resolver is (still, even in 3.0.4 apparently) not thread safe:

    http://jira.codehaus.org/browse/MNG-4742

    try building with:

    -Dmaven.artifact.threads=1

    When I build with this option in 3.0.4 in a project that displays checksum errors (for log4j), all of the checksum errors disappear.

    It should apply to 2.2.1 as well.

    (edit: file this answer under 'hiding false negatives')

提交回复
热议问题