首页 > 解决方案 > 在多线程中构建 Maven 项目时发出警告

问题描述

我正在尝试使用命令在并行多线程中构建我的 Maven 项目

mvn -T 1C install

但我得到了警告,并且线程在单线程中构建。我已经检查了这个插件的文档,但我没有得到任何帮助

[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 Abs Microservice Analytics:
[WARNING] org.springframework.cloud:spring-cloud-contract-maven-plugin:1.2.4.RELEASE
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************

标签: mavenmaven-pluginspring-cloud-contract

解决方案


推荐阅读