title: How to configure maven in pom file
body: <p>I have using intellij for creating a maven project.The intellij contains maven plug in apache-maven-3.3.9.When i deploy the project i got the following error.</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project MyProject: Failed to deploy artifacts/metadata: Cannot access scp://repo/maven2 with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access scp://repo/maven2 using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
  [ERROR] role: org.apache.maven.wagon.Wagon
  [ERROR] roleHint: scp
  </code></pre>
  
  <p>Below is my pom file.</p>
  
  <p>pom.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;MyProject&lt;/groupId&gt;
  &lt;artifactId&gt;MyProject&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  
  &lt;properties&gt;
      &lt;spring.version&gt;4.2.5.RELEASE&lt;/spring.version&gt;
      &lt;hibernate.version&gt;4.2.2.Final&lt;/hibernate.version&gt;
  &lt;/properties&gt;
  
  &lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;uniqueVersion&gt;false&lt;/uniqueVersion&gt;
          &lt;id&gt;corp1&lt;/id&gt;
          &lt;name&gt;Corporate Repository&lt;/name&gt;
          &lt;url&gt;scp://repo/maven2&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
      &lt;/repository&gt;
  
  &lt;/distributionManagement&gt;
  
  &lt;dependencies&gt;
   ...
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
   &lt;/project&gt;
  </code></pre>
  
  <p>I don't know what i am doing wrong here.Please help me.</p>