'mvn clean install command in terminal not working [duplicate]

I can't compile my code with terminal mvn clean install. There is error: The term 'mvn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.



Solution 1:[1]

did you try to check in your environment variable?

  1. check that you installed maven
  2. add the maven path to the path variable under System Variables

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Maoz