PowerShell not running maven commands

EuGeNiO HR 1 Reputation point
2022-09-29T16:55:46.157+00:00

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:

246144-image.png

However it fails when try to execute on PowerShell:

246078-image.png

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
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.