gpt4 book ai didi

java - 如何查看 Maven 中的所有非线程安全插件?

转载 作者:行者123 更新时间:2023-12-01 10:00:13 26 4
gpt4 key购买 nike

我在 this 中阅读了有关 maven 并行构建配置的信息.那么如何显示所有非线程安全插件呢? Maven 中是否有类似“plugin-not-safe-list”的命令?

REM something like that to display all p[lugins without @threadSafe  annotation
mvn help:plugin-not-safe-list

最佳答案

现在,当您构建 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 Root 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] *****************************************************************

关于java - 如何查看 Maven 中的所有非线程安全插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24407583/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com