Reputation: 1
I have installed maven 2.2.1 and tested mvn -v command. But it shows maven version 2.0.11. (i had previously installed it and co-exist with 2.2.1) Why this?
Upvotes: 0
Views: 46
Reputation: 3464
Be sure that the two following environment variables point to your 2.2.1 installation:
The output of mvn -v uses the M2_HOME environment variable, but keeping PATH and M2_HOME in line is important too.
Upvotes: 1