执行maven并行构建时的线程安全警告



我正在运行Maven并行构建。我得到了一些警告。

[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project      *
[WARNING] * contains the following plugin(s) that are not marked as       *
[WARNING] * @threadSafe to support parallel building.                     *
[WARNING] * While this /may/ work fine, please look for plugin updates    *
[WARNING] * and/or request plugins be made thread-safe.                   *
[WARNING] * If reporting an issue, report it against the plugin in        *
[WARNING] * question, not against maven-core                              *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in my-project:
[WARNING] org.apache.maven.plugins:maven-clean-plugin:2.1.1
[WARNING] org.codehaus.mojo:cobertura-maven-plugin:2.2
[WARNING] ****************************************************************

构建就是成功。有人能告诉我以下插件的哪个版本是线程安全的吗。

我可以忽略这一点吗。

org.apache.maven.plugins:maven-clean-plugin:2.5org.codehaus.mojo:cobertura-maven-plugin:2.5.2都是线程安全的(来自https://maven.apache.org/plugins/)

大多数情况下,这个警告没什么好担心的,但如果你使用并行构建功能,我建议你的插件使用线程安全版本。

相关内容

  • 没有找到相关文章

最新更新