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

问题描述 投票:0回答:1

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

MVN全新安装-DskipTests -T 2.0C

但是工件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版本开始支持的版本...所以我丢失了其他一些参数或配置?

java maven deployment apache-karaf
1个回答
2
投票

Maven确实是正确的,版本4.2.8和更高版本的插件未标记为线程安全的。来自不同插件的其他几种技巧很困难,因此很可能不是一个错误。

[我假设您读过karaf-maven-plugin是线程安全的,但是您使用的是另一个名为karaf-services-maven-plugin的插件。

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

© www.soinside.com 2019 - 2024. All rights reserved.