Root cause:
Maven path might not be set properly, particularly if you would have set the maven path till maven folder rather than maven\bin folder, you will get this error.
Solution:
During path setting via command prompt or system properties -> Environment variables you have to do like below,
valid maven path:
variable name: m2_home
value: c:\apache-maven-3.0.4 (Valid)
Invalid maven path:
variable name: m2_home
c:\apache-maven-3.0.4\bin (invalid and it throws the error as like above).
Thanks for reading this post…………!!!