<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>auto-clean</id> <phase>initialize</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> <configuration> <verbose>true</verbose> <filesets> <fileset> <directory>${project.build.outputDirectory}</directory> <includes> <include>**/*</include> </includes> </fileset> </filesets> </configuration> </plugin>