You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "RayLee (Jira)" <ji...@apache.org> on 2022/02/25 16:23:00 UTC
[jira] [Created] (MNG-7424) "systemPath" of dependency can't set cross system platform
RayLee created MNG-7424:
---------------------------
Summary: "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
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)