[ 
https://issues.apache.org/jira/browse/MNG-7270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MNG-7270.
-------------------------------
    Resolution: Fixed

Fixed with 
[8852b87412c0af70efcee76f1bb12bc44635aab1|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=8852b87412c0af70efcee76f1bb12bc44635aab1]
 and 
[fb5f3f5b0f36d3232b0193c1d9b33fd0b36b9601|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=fb5f3f5b0f36d3232b0193c1d9b33fd0b36b9601]
 for {{maven-3.8.x}} branch.

> Maven startup script (init) calls which(1) which is an external command
> -----------------------------------------------------------------------
>
>                 Key: MNG-7270
>                 URL: https://issues.apache.org/jira/browse/MNG-7270
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.8.2
>         Environment: UNIX/POSIX, Linux
>            Reporter: Jonathan Dowland
>            Assignee: Michael Osipov
>            Priority: Minor
>             Fix For: 4.0.x-candidate, 3.8.x-candidate
>
>
> The "init" shell wrapper script, that often ends up as /usr/bin/mvn in 
> downstream distributions, calls the program "which" in the situation where 
> JAVA_HOME is not defined.
> "which" is a separate binary program that may or may not be installed. 
> Increasingly it may not be in environments which are trying to reduce their 
> install footprint e.g. containers.
> A portable alternative is to use {{command \-v}} with some defensive commands 
> prior (unalias, unset: see 
> [https://pubs.opengroup.org/onlinepubs/009695399/utilities/command.html).]--
> I've got a PR ready to go.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to