Maven deploy is throwing error
<p>I have a very simple / basic Web app. 
When I run </p>

<blockquote>
  <p>mvn deploy -e</p>
</blockquote>

<p>I am seeing the following error in the console. </p>

<blockquote>
  <p>[ERROR] Failed to execute goal
  org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
  (default-deploy) on project TestWebApp: Deployment failed: repository
  element was not specified in the POM inside  distributionManagement
  element or in -DaltDeploymentRepository=id::layout::url parameter ->
  [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException:
  Failed to execute goal
  org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
  (default-deploy) on project TestWebApp: Deployment failed: reposi tory
  element was not specified in the POM inside distributionManagement
  element or in -DaltDeploymentRepository=id::layout::url parameter
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)</p>
</blockquote>

<p>Maven section is:</p>

<pre><code>&lt;profile&gt;
        &lt;id&gt;TestWebApp-Repo&lt;/id&gt;
            &lt;repositories&gt;
                &lt;distributionManagement&gt;
                    &lt;repository&gt;
                      &lt;id&gt;TestWebApp_Repository&lt;/id&gt;
                      &lt;name&gt;TestWebApp Applications Repository Internal&lt;/name&gt;
                      &lt;url&gt;C:/Users/~/.m2/repository&lt;/url&gt;
                      &lt;releases&gt;
                        &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/releases&gt;
                      &lt;snapshots&gt;
                        &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                    &lt;/repository&gt;
                &lt;/distributionManagement&gt;
            &lt;/repositories&gt;
&lt;/profile&gt;
</code></pre>