I know that "mvn clean install" cleans everything that has already been built by maven and rebuilds everything as specified by pom.xml. However, if things have already been installed, and I just run "mvn install", does it reinstall things that already been installed? In other words, does it install things twice or does it only install the additional files that are needed?

  • 1
    product support questions are not quite on topic here, try asking in that product's support or community
    – Martin K
    Mar 9, 2020 at 16:26

1 Answer 1


mvn clean install tells maven to do the clean phase in each module before running the install phase for each module.

mvn clean is its own build lifecycle phase (which can be thought of as an action or task) in maven.

In Maven terms:

clean is a phase of the clean lifecycle.

install is a phase of the default lifecycle

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.