You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/04/09 13:08:43 UTC

[jira] Created: (MAVEN-1226) newer SNAPHOTs dependencies in local repo are replaced with older from remote repo

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1226

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1226
    Summary: newer SNAPHOTs dependencies in local repo are replaced with older from remote repo
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: 1 day
 Time Spent: Unknown
  Remaining: 1 day

    Project: maven
   Versions:
             1.0-rc1
             1.0-rc2

   Assignee: 
   Reporter: Artur Jonak

    Created: Fri, 9 Apr 2004 7:07 AM
    Updated: Fri, 9 Apr 2004 7:07 AM

Description:
When using remote repository via other than HTTP protocols then newer SNAPSHOTs (used in POM library dependencies) in local repo are replaced by older from remote repo.

Proposed solution:
in org.apache.maven.util.HttpUtils class in method getFile(...)

perform checking:
[...]
URLConnection connection = source.openConnection();
[...]
if (connection.getLastModified()<destinationFile.lastModified())
  return;
[...]


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org