8,330 questions
PowerShell not running maven commands
EuGeNiO HR
1
Reputation point
Im using maven to run a Java application, the command im using is:
mvn compile exec:java -Dexec.mainClass="com.vroi.api.PowerPointTest" -Dexec.classpathScope="test"
The command runs fine when executed on normal command prompt:
However it fails when try to execute on PowerShell:
As seen in the error, it looks like PowerShell is not able to correctly identify the parameters of mvn compile exec command, is there are workaround for this? is this a limitation of PowerShell? and if that is the case, will it eventually be solved? Thanks in advance for the help
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
Sign in to answer