【发布时间】:2018-07-03 02:18:40
【问题描述】:
有没有办法在 maven 尝试之前安装 BOM 作为 maven 调用的一部分 解决它。查看正常依赖的相关问题
Install local jar dependency as part of the lifecycle, before Maven attempts to resolve it
Is there are way to install maven dependencies before maven attempts to resolve them?
我尝试在validate 阶段运行插件,但 maven 总是解决
bom 首先是导入范围 bom 或用作父 bom。
【问题讨论】:
-
BOM 以及使用它的项目是否是多模块项目中的子模块?
-
不,BOM 是一个单独的工件,可以使用 maven-ant-plugin 从网络获取并安装在本地作为示例。
-
您是否查看过扩展名:maven.apache.org/examples/maven-3-lifecycle-extensions.html?也许他们会提供您需要的灵活性。
标签: maven maven-3 maven-plugin