apache maven version shown different than one installed

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

Answers (1)

Tome
Tome

Reputation: 3464

Be sure that the two following environment variables point to your 2.2.1 installation:

  • M2_HOME
  • PATH (pointing to %M2_HOME%/bin)

The output of mvn -v uses the M2_HOME environment variable, but keeping PATH and M2_HOME in line is important too.

Upvotes: 1

Related Questions