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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-2
    • 1.0-beta-3
    • wagon-provider-api
    • 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

              brett Brett Porter
              oliveros Dário Oliveros
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: