I am attempting to run an xcode project which has a simply build phase script that executes mvn install
. When I try to build, I receive the error mvn command not found
. However, if I run mvn -v
on the terminal mvn works. As well, other IDE's which I use (such as Android Studio and Eclipse) have picked up on my maven installation.
This leads me to believe that perhaps the build phase scripts are not executing as my user. However, I cannot find any reference as to what user the build phase scripts will use, or if the user is configurable.
Why is Xcode not picking up on mvn
which is on my user's path?
UPDATE:
When I do whoami
I see that the script is running in xcode as my user which makes this all the more confusing for me.
Also, thanks to the suggestion by I'L'I I was able to discover that using the fully qualified path would work. I am not really sure why this is the case because