Maven clean install equals mvn clean and after installing mvn?

I have a multi-module maven project. Found that:

mvn clean - takes 3 minutes after

mvn install - takes 18 minutes.

Therefore, I assume that mvn clean install will take 21 minutes, but it will take about 30 minutes! Same:

mvn clean install 

and

 mvn clean mvn install 

? Thanks.

+6
source share
2 answers

AFAIK, yes, although I'm a little surprised at startup / resolution, etc. takes a long time.

Things like OS caching, running / optimizing JVMs, etc. etc., will play a role in the differences.

+4
source

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 
+2
source

Source: https://habr.com/ru/post/915981/


All Articles