Avoid caching

522 views
Skip to first unread message

manue...@gmail.com

unread,
Feb 25, 2013, 10:15:48 AM2/25/13
to maven-down...@googlegroups.com
Hi,

Right now the plugin is caching the file I am downloading, getting it from my .m2 folder. Does anyone know how to avoid this? I need to download the file everytime I run maven because the file may change.

Thanks in advance.

Mickael Istria

unread,
Feb 25, 2013, 10:22:24 AM2/25/13
to maven-down...@googlegroups.com
On 02/25/2013 04:15 PM, manue...@gmail.com wrote:
Hi,
Hello,


Right now the plugin is caching the file I am downloading, getting it from my .m2 folder. Does anyone know how to avoid this? I need to download the file everytime I run maven because the file may change.

Caching is one of the key features of this maven-download-plugin, there's currently now way to disable it, but feel free to create a pull request if you want it to change.
If you just want to make a simple get without cache, md5 checks or anything, you might simply be able to use this plugin: http://mojo.codehaus.org/wagon-maven-plugin/download-single-mojo.html
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Brice Vandeputte

unread,
Mar 10, 2016, 5:48:20 AM3/10/16
to maven-download-plugin, mis...@redhat.com
just a little update of this old thread:

as today using download-maven-plugin version 1.2.1, skipCache wget parameter is available


<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>wget-swagger-ui</id>
<phase>validate</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<unpack>true</unpack>
<skipCache>true</skipCache>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Reply all
Reply to author
Forward
0 new messages