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

SERHII 1 Reputation point
2022-02-22T17:19:49.453+00:00

176895-image.png

176924-image.png

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.
5,354 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 44,621 Reputation points
    2022-02-22T19:01:37.593+00:00

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


  2. Rich Matheisen 44,621 Reputation points
    2022-02-23T03:48:05.913+00:00

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