简体   繁体   English

maven 如何在以下用例中处理传递依赖关系?

[英]How does a maven handles transitive dependencies in the following use case?

I have a maven modular project with the following build order.我有一个 maven 模块化项目,其构建顺序如下。

common
core
third-party
services
web-app

Each module has its own pom.xml and the build order is included in the parent pom.每个模块都有自己的pom.xml并且构建顺序包含在父 pom 中。 So when I make any changes to common , should I only build common module or all the modules again to get the latest changes from common module?因此,当我对common进行任何更改时,我应该只构建 common 模块还是再次构建所有模块以从 common 模块中获取最新更改?

It is generated a jar file to each module, then you should build all modules again.它会为每个模块生成一个 jar 文件,然后您应该重新构建所有模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM