title: how to automatically set scm connection in maven pom?
body: <p>We are trying to run <code>release:prepare</code> but this produces error like below.</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:
          prepare (default-cli) on project test-module:
          Missing required setting:
          scm connection or developerConnection must be specified. -&gt; [Help 1]
  </code></pre>
  
  <p>We want to avoid setting the scm.connection manually.</p>
  
  <p>How to set <code>scm.connection</code> automatically to the current URL? - For SVN and git.</p>
  
  <p>The information must be somewhere within the (metadata of the) module, since <code>svn info</code> displays the value under <code>URL</code>.</p>