Nknown lifecycle Phase "–dmaven.test.skip=true". Must specify a valid lifecycle phase or a goal <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>.
in the format Available lifecycle phases Are:validate, Initializ E, generate-sources, Process-sources, Generate-resources, process-resources, compile, process-classes, Generate-test-sources, Process-test-sources, Generate-test-resources, Process-test-resources, Test-compile, Process-test-classes, test, Prepare-package, package, Pre-integration-test, Integration-test, Post-integration-test, Verify, install, deploy, Pre-clean, clean, Post-clean, Pre-site, site, Post-site, Site-deploy. → [help 1]
Workaround:
Use this command
$mvnArgs1 ="mvn test -X -Dmaven.test.skip=true".replace(‘-D‘,‘`-D‘)Invoke-Expression $mvnArgs1
PowerShell using MVN compile error Unknown lifecycle phase ". Test.skip=true". Solutions