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

"systemPath" of dependency can't set cross system platform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • 3.8.4
    • None
    • Dependencies
    • None
    • Patch

    Description

      In my team we work on both linux and windows .

      And we use some jar library not in maven repository,so we use "system" scope to help.

      "systemPath" must set a absolute path, but:

              on windows "c:/xxx" is absolute path, "/opt/xxx" not

              on linux "/opt/xxx" is absolute path, "c:/xxx" not

      If we develop a private library witch has a system dependency and deploy it in a private maven repo, there will be some error when maven download dependency.

       

      I write a test.jar,

      when we set "/xxx/xxx/xx.jar" as "systemPath" in test.pom , on linux it works, even "xx.jar" file does not exist, the test.jar can download correctly.

      but same "/xxx/xxx/xx.jar" on windows will cause a warning: "must specify an absolute path but is xxx", and will not download the test.jar. 

       

      I think since maven will not require the existence of the system scope jar it depends on when downloading the test.jar, then it can friendly support set "systemPath" as cross-platform  absolute path.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ufolr RayLee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified