The Maven build lifecycle consists of several phases, such as:
The test phase is responsible for executing the unit tests.
The verify phase is responsible for executing the integration tests.
When you run mvn install, Maven executes all the phases up to and including the verify phase, which means both unit tests and integration tests will be executed.
mvn install -DskipTests
mvn install -DskipITs