Why my maven commands don't work in PowerShell but the same commands work in the cmd?

SERHII 1 Reputation point



Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,891 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 38,831 Reputation points

    Is the directory C:\Users\sehonc in your PATH environment variable? If it's not try using .\mvn.exe -v

  2. Rich Matheisen 38,831 Reputation points

    Is "mvn" an executable? Or is it a script?