6

我有多模块 Maven 项目。发现:

mvn clean - 需要 3 分钟后

mvn install - 需要 18 分钟。

所以我想 mvn clean install 应该需要 21 分钟,但需要将近 30 分钟!也一样:

mvn clean install

mvn clean
mvn install

? 谢谢。

4

2 回答 2

4

AFAIK,是的,虽然我对启动/解决/等有点惊讶。需要那么多时间。

诸如操作系统缓存、JVM 启动/优化/等等之类的东西都会在差异中发挥作用。

于 2012-05-17T10:44:00.560 回答
2

举个例子

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
于 2012-05-17T10:46:58.910 回答