You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2022/10/20 08:11:03 UTC
[jira] [Updated] (MNG-7270) Maven startup script (init) calls which(1) which is an external command
[ https://issues.apache.org/jira/browse/MNG-7270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated MNG-7270:
---------------------------------
Fix Version/s: 4.0.0-alpha-2
> 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: 3.8.4, 4.0.0-alpha-1, 4.0.0-alpha-2, 4.0.0
>
>
> 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.20.10#820010)