Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-90

The getIfNewer method fails to work if file doesn't exist locally when using repo proxy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-2
    • Fix Version/s: 1.0-beta-3
    • Component/s: wagon-provider-api
    • Labels:
      None

      Description

      When compiling a maven project which is of maven-plugin packaging type, the maven-plugin-plugin-<version>.jar is not downloaded from an internal repo (archiva repo manager) at all.
      I've noticed that the 'resource.getLastModified()' method call returns 0 which causes the following if statement to fail since timestamp is also 0:
      if ( resource.getLastModified() > timestamp )

      By replacing '>' with '>=' the problem goes away, but I am not sure if it's a valid fix.
      BTW, this bug may be related to http://jira.codehaus.org/browse/WAGONHTTP-5.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brettporter Brett Porter
                Reporter:
                oliveros Dário Oliveros
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: