hi guys i have maven 2 installed, when i use mvn clean or mvn install in the app root it works fine but when trying to use maven install inside a bash script i got the above
Couple of possibilities...
I had this issue when my M2_HOME environment variable points to an incorrect location.
Try to:
$ cd $M2_HOME