You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/02/25 16:49:00 UTC

[jira] [Commented] (MNG-7424) "systemPath" of dependency can't set cross system platform

    [ https://issues.apache.org/jira/browse/MNG-7424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17498207#comment-17498207 ] 

Michael Osipov commented on MNG-7424:
-------------------------------------

I don't understand our request. What problem do you want to be solved?

> "systemPath" of dependency can't set cross system platform
> ----------------------------------------------------------
>
>                 Key: MNG-7424
>                 URL: https://issues.apache.org/jira/browse/MNG-7424
>             Project: Maven
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.8.4
>            Reporter: RayLee
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)