[ http://jira.codehaus.org/browse/MNG-1258?page=comments#action_68763 ] 

Arik Kfir commented on MNG-1258:
--------------------------------

Hi,

You could use the "If-Modified-Since" HTTP header when querying the repo. All 
HTTP servers support this (part of HTTP protocol). This essentially tells the 
server to provide the resource (POM, JAR, etc) only if it was modified after a 
certain date; the given date can be the date it was downloaded to the user's 
computer. 

Even more powerful would be to have maven do this automatically once in a 
while. So, for example, once a week maven does this to every artifact it 
downloads (even without the command line parameter). Of course, this should be 
configured in the settings.xml file.

This would completely eliminate the stale artifacts problem in users' 
computers, whilst not requiring users to know about this command line switch, 
and not hurting performance too much (since only the deltas are re-downloaded).

The downside is that there is still an additional request to the server (once a 
week or whatever) but the upside is that no stale artifacts are present for too 
long in a user's dir. 

WDYT?

> Add option to redownload poms
> -----------------------------
>
>          Key: MNG-1258
>          URL: http://jira.codehaus.org/browse/MNG-1258
>      Project: Maven 2
>         Type: Improvement

>   Components: Plugins and Lifecycle
>     Versions: 2.0 (RC)
>     Reporter: Carlos Sanchez
>      Fix For: 2.1

>
>
> Add an option to the command line to redownload the poms, so it's easy to get 
> the fixes in the remote repo. Something like -f , --refresh or whatever

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to