/ Published in: XML
Yet another way to clean maven local artifacts cache before build - putting local repository as Ant-like in maven-clean-plugin configuration (default clean action - cleaning target directory - works by default).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<project> <!-- At least GAV are needed here --> <build> <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.1</version> <configuration> <filesets> <fileset> <directory>${settings.localRepository}</directory> <includes> <include>**/*.jar</include> <include>**/*.pom</include> <include>**/*.sha1</include> </includes> </fileset> </filesets> </configuration> </plugin> </plugins> </build> </project>
URL: mvn_clean_plugin_clear_repo