title: Cannot run Maven using `mvn -D` argument within Microsoft Powershell, but works in Command Prompt
body: <p>I am trying to build our web project from the commandline but skipping the testing. I am using the command <code>mvn clean install -Dmaven.test.skip=true</code>.</p>
  
  <p>When I run the command from the traditional black &amp; white Command Prompt (aka DOS shell) the command works, but when I run it from the command from "Windows PowerShell" I get the following error:</p>
  
  <p><code>[ERROR] Unknown lifecycle phase ".test.skip=true". You must specify a valid lifecycle phase or a goal in the format &lt;plugin-prefix&gt;:&lt;goal&gt; or &lt;plugin-group-id&gt;:&lt;plugin-
  artifact-id&gt;[:&lt;plugin-version&gt;]:&lt;goal&gt;. Available lifecycle phases are: validate, initialize, 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, prepar
  e-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, po
  st-clean. -&gt; [Help 1]</code></p>
  
  <p>What is causing this discrepancy and how do I get PowerShell to behave like the traditional Command Prompt?</p>
  
  <p>This is running on Windows 7. </p>