gpt4 book ai didi

java - karaf-services-maven-plugin 上的 mvn 并行构建 -T

转载 作者:行者123 更新时间:2023-12-02 01:02:23 25 4
gpt4 key购买 nike

我正在尝试使用命令在 Maven 上执行并行构建执行

mvn clean install -DskipTests -T 2.0C

但是 Artifact org.apache.karaf.tooling:karaf-services-maven-plugin:4.2.8

引发此警告

[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 myBundle Install:
[WARNING] org.apache.karaf.tooling:karaf-services-maven-plugin:4.2.8
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************

在 karaf jira 中实际上说这是自 3.0.6 版本以来受支持的版本...所以我丢失了一些其他参数或配置?

最佳答案

Maven确实是正确的,插件版本4.2.8并且较新的未标记为线程安全的。来自不同插件的其他几个魔力都很难,所以这很可能不是一个错误。

我假设您读到 karaf-maven-plugin 是线程安全的,但您正在使用名为 karaf-services-maven-plugin 的不同插件。

您可以尝试构建是否可以并行执行,但我不建议这样做。如果需要,您可以提交功能请求。

关于java - karaf-services-maven-plugin 上的 mvn 并行构建 -T,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60500421/

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