如何在maven里面看到所有非线程安全的插件plugins

4次阅读

共计 899 个字符,预计需要花费 3 分钟才能阅读完成。

今天看了 maven 并行编译的相关文章,于是就想是否有相关的命令可以查看 maven 所有的非线程安全的插件呢。

在编译的时候使用 maven 会自动给出相关警告,如下面所示

[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project      *
[WARNING] * contains the following plugin(s) that have goals not marked   *
[WARNING] * as @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 Traderoot Maven Parent:
[WARNING] com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
正文完
 0