commit | 8852b87412c0af70efcee76f1bb12bc44635aab1 | [log] [tgz] |
---|---|---|
author | Jonathan Dowland <jdowland@redhat.com> | Wed Sep 29 11:29:35 2021 +0100 |
committer | Michael Osipov <michaelo@apache.org> | Mon Oct 11 22:17:23 2021 +0200 |
tree | d297faba1b0e640bfe03fc562acc505ffd7e08b1 | |
parent | 0080e845884922814d26914d0ae9f59b084bee35 [diff] |
[MNG-7270] Switch to shell alternative to "which" In some circumstances the init script calls `which`, which may or may not be available on the host system. Instead, use `command -v`, which is nearly equivalent. One area it differs is if the command being queried is defined as a shell alias. To avoid that, call `unset -f command` to avoid the situation where "command" has been re-defined as a shell function. See here for more information on this approach: <https://pubs.opengroup.org/onlinepubs/009695399/utilities/command.html> Tested with bash, sh (bash invoked as sh), posh, dash, zsh and mksh. This closes #556
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
If you think you have found a bug, please file an issue in the Maven Issue Tracker.
More information can be found on Apache Maven Homepage. Questions related to the usage of Maven should be posted on the Maven User List.
You can download the release source from our download page.
If you are interested in the development of Maven, please consult the documentation first and afterward you are welcome to join the developers mailing list to ask questions or discuss new ideas/features/bugs etc.
Take a look into the contribution guidelines.
This code is under the Apache License, Version 2.0, January 2004.
See the NOTICE
file for required notices and attributions.
Do you like Apache Maven? Then donate back to the ASF to support the development.
If you want to bootstrap Maven, you'll need:
mvn -DdistributionTargetDir="$HOME/app/maven/apache-maven-4.0.x-SNAPSHOT" clean package