Skipping Clean

To skip running the cleanup for a particular project, set the skip property to true.

<build>
  [...]
    <plugin>
      <artifactId>maven-clean-plugin</artifactId>
      <version>3.4.0</version>
      <configuration>
        <skip>true</skip>
      </configuration>
    </plugin>
  [...]
</build>

You can also skip the cleaning via command line by executing the following command:

mvn clean -Dmaven.clean.skip=true