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

Improve handling of relative paths with backslashes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.1, 3.0-alpha-4
    • 3.0-alpha-7
    • POM
    • None
    • Unix, Mac

    Description

      Consider this snippet:

      <parent>
        <relativePath>..\pom.xml</relativePath>
      </parent>
      

      Note in particular the backslash used in the path. While this path will be properly resolved on a Windows box, it will fail to resolve the local parent on a Unix/Mac box (as the backslash is not a separator but escape character here). This applies to other paths in the POM as well.

      For platform-independent behavior, we should either encourage the user to use forward slashes (by means of validation warnings/errors) or have Maven convert the paths internally.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: