Apache

Docs Plugins

Clean Plugin 3.5.0 · Other versions

The Maven Clean Plugin is a plugin that removes files generated at build-time in a project's directory.

Source
Edit this page
Wrong?
Report a problem

Ignoring Clean Errors

To ignore errors when running the cleanup for a particular project, set the failOnError property to false.

<build>
  [...]
    <plugin>
      <artifactId>maven-clean-plugin</artifactId>
      <version>3.5.0</version>
      <configuration>
        <failOnError>false</failOnError>
      </configuration>
    </plugin>
  [...]
</build>

You can also ignore them via command line by executing the following command:

mvn clean -Dmaven.clean.failOnError=false