[
https://issues.apache.org/jira/browse/MNG-7424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MNG-7424.
-------------------------------
Fix Version/s: (was: waiting-for-feedback)
Resolution: Incomplete
No response since February.
> "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.10#820010)