[英]Maven clean install is equal mvn clean and after mvn install?
I have multimodule maven project. 我有多模块maven项目。 Found that: 发现:
mvn clean - takes 3 minutes after mvn clean - 需要3分钟后
mvn install - takes 18 minutes. 安装mvn - 需要18分钟。
So I suppose that mvn clean install should take 21 minutes, but it takes near 30 minutes! 所以我认为mvn clean install需要21分钟,但需要30分钟左右! So does it the same: 所以它是一样的:
mvn clean install
and 和
mvn clean
mvn install
? ? Thanks. 谢谢。
AFAIK, yes, although I'm a little surprised startup/resolution/etc. AFAIK,是的,虽然我对启动/解决/等有点惊讶。 takes that much time. 花费那么多时间。
Things like OS-caching, JVM startup/optimization/etc., and so on would all play a role in the differences. 像操作系统缓存,JVM启动/优化/等等等都会在差异中发挥作用。
let take this example 让我们举个例子
framework
framework-utils
foundation
foundation-model
foundation-api
foundation-core
The call order of my modules:
1. mvn clean / mvn install: [clean] framework-utils [clean]
foundation-model [clean] foundation-api [clean] foundation-core
[install] framework-utils [install] foundation-model [install]
foundation-api [install] foundation-core
2. mvn clean install: [clean] framework-utils [install]
framework-utils [clean] foundation-model [install] foundation-model
[clean] foundation-api [install] foundation-api [clean]
foundation-core [install] foundation-core
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.