Return to Snippet

Revision: 64669
at September 5, 2013 16:48 by alces


Initial Code
<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>

Initial URL
mvn_clean_plugin_clear_repo

Initial Description
Yet another way to clean maven local artifacts cache before build - putting local repository as Ant-like <fileset> in maven-clean-plugin configuration (default clean action - cleaning target directory - works by default).

Initial Title
Clear local maven repository via maven-clean-plugin

Initial Tags

                                

Initial Language
XML