title: Releasing a multi-module maven project with Git
body: <p>I'm trying to release a multi-module maven project that uses git as the SCM, and among the first problems I've encountered is the way in which the maven release plugin builds the release.properties scm.url. My parent POM looks something like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;groupId&gt;org.project&lt;/groupId&gt;
  &lt;artifactId&gt;project-parent&lt;/artifactId&gt;
  &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  
  &lt;scm&gt;
      &lt;connection&gt;scm:git:git://github.com/username/project.git&lt;/connection&gt;
      &lt;developerConnection&gt;scm:git:git@github.com:username/project.git&lt;/developerConnection&gt;
      &lt;url&gt;http://github.com/username/project&lt;/url&gt;
  &lt;/scm&gt;
  
  &lt;modules&gt;
      &lt;module&gt;api&lt;/module&gt;
      &lt;module&gt;spi&lt;/module&gt;
  &lt;/modules&gt;
  </code></pre>
  
  <p>And the module POMs are straightforward:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;parent&gt;
      &lt;groupId&gt;org.project&lt;/groupId&gt;
      &lt;artifactId&gt;project-parent&lt;/artifactId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  &lt;artifactId&gt;api&lt;/artifactId&gt;
  &lt;version&gt;0.2.2&lt;/version&gt;
  </code></pre>
  
  <p>My goal is to be able to release individual modules since they each have different versions and I don't want to increment all of the versions together each time I do a release.</p>
  
  <p>When I change to the <code>api</code> directory and do a <code>mvn release:clean release:prepare</code> I'm met with the following output:</p>
  
  <pre><code>[INFO] Executing: cmd.exe /X /C "git push git@github.com:username/project.git/api master:master"
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Unable to commit files
  Provider message:
  The git-push command failed.
  Command output:
  ERROR: Repository not found.
  </code></pre>
  
  <p>It looks like the maven release plugin creates the scm.url by appending the module name to the <code>developerConnection</code>, which ends up not being a valid repository at github. I'm not sure what the right way to set this up is. It might be the case that Maven + git + releasing an individual child module simply won't work? Any input is appreciated.</p>