Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4717

Repository Ids containing ":" will lead to checksum errors on Windows machines

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 3.0-beta-2
    • None
    • Windows 7

    Description

      If a repositorys id element contains a ":" character, maven tries to create a repository-metadata-<<repositoryId>>.xml file under certain circumstances (in our case when version ranges are used). Under windows this is not possible and will lead to an error looking like this:

      [WARNING] *** CHECKSUM FAILED - Invalid checksum file - RETRYING
      [WARNING] *** CHECKSUM FAILED - Invalid checksum file - IGNORING
      [WARNING] repository metadata for: 'artifact XX:XX' could not be retrieved from repository: YY:YY due to an error: Error copying temporary file to the final destination: Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
      

      The Problem is in org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata#getLocalFilename.

      Better Logging, robustness check or documentation of this issue would be helpfull.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              fsimmend Felix Simmendinger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: