title: Disable distributionManagement in Maven POM
body: <p>I am trying to run a <code>mvn deploy</code> goal with maven on my Liferay portlet but am getting the following error</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.
  2:deploy (default-deploy) on project MyPortlet: Deployment failed: repository eleme
  nt was not specified in the POM inside distributionManagement element or in -Dal
  tDeploymentRepository=id::layout::url parameter -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
  rg.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on pro
  ject RiskID: Deployment failed: repository element was not specified in the POM
  inside distributionManagement element or in -DaltDeploymentRepository=id::layout
  </code></pre>
  
  <p>I understand this error will return if you don't include the <code>&lt;distributionManagement /&gt;</code> tag in the pom.xml, however I don't wish to package this to a remote location and would like to instead deploy to my local tomcat instance; can this be configured?</p>