Mehdi Ben Larbi wrote:Hello,
I have the same problem but i can't execute mvn --version from my maven directory.
I don't know what's the problem ?
If you're doing it in Linux, the current directory isn't part of the default execution path. Try "./mvn"
Better yet, set your environment:
Windows: "PATH ADD %MAVEN_HOME%\bin
Linux: "export PATH=$MAVEN_HOME/bin:$PATH"
and it's really not a good idea to actually use any of the maven software directories as a current (execution) directory. If you have the proper execution path setup, you can (and should) execute Maven while in the project's root directory.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.