https://bugzilla.redhat.com/show_bug.cgi?id=1396395
Bug ID: 1396395
Summary: Maven should depend on "which"
Product: Fedora
Version: 24
Component: maven
Assignee: mizdebsk(a)redhat.com
Reporter: bkabrda(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: akurtako(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org,
mizdebsk(a)redhat.com, msimacek(a)redhat.com,
msrb(a)redhat.com
Description of problem:
I have an application that uses maven-invoker to run a maven command. This
application runs in a minimal Fedora container, where which is not installed.
Since maven-invoker uses /usr/share/maven/bin/mvn and this file contains calls
to "which", maven-invoker is unable to run maven, since the script fails.
Version-Release number of selected component (if applicable):
maven-3.3.9-4.fc24.noarch
How reproducible:
Always.
Steps to Reproduce:
1. Create a simple Java app that uses maven-invoker to invoke any maven
command.
2. Run it.
3. Observe the failure below.
Actual results:
/usr/share/maven/bin/mvn: line 143: which: command not found
/usr/share/maven/bin/mvn: line 171: which: command not found
Error: JAVA_HOME is not defined correctly.
We cannot execute
Expected results:
<no errors>
Additional info:
None.
--
You are receiving this mail because:
You are on the CC list for the bug.