I have configured external maven in eclipse however when I try to use mvn -version
from eclipse terminal (shown in the image background) it says command not found. All mvn
commands work from mac terminal though.
From terminal:
Content of my .bash_profile
I know .bash_profile
is read when terminal is lunched and as eclipse is lunched from UI icon that is why these variables are not available there.
I read lot of articles which talks about setting up environment.plist and my.startup.plist. At the same time there are people saying these .plist files are no more supported in my mac version.
Article links:
https://apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks
Mac OS X Lion no longer recognizes environment.plist?
Now I am totally confused how to make mvn
work from eclipse terminal. Could somebody please show me a step to step guid.
Another follow up question: on my mac terminal java - version works but when I print the list of environment variables no where I see JAVA_HOME, then how come java - version
works. In above screen shoot you can see mvn -- version
command was able to find java home.
Please help totally stuck at setting up the development environment.