title: Maven deploy:deploy using -DaltDeploymentRepository
body: <p>I have maven projects and I want to deploy my artifacts on internal nexus repository which is configured to have my <strong>snapshots</strong> and <strong>releases</strong> on two separate places. So I can not use 'distributionManagement' as this would hardcode the location. So I have defined couple of <strong></strong> in my <strong>settings.xml</strong> say 'releaseRepository' and 'snapshotRepository' and each have parameter 'release' which should be set to 'true' for releases and 'false' for snapshots.</p>
  
  <p>I am running my build with following command to release my artifacts;</p>
  
  <pre><code>mvn clean deploy -DaltDeploymentRepository=releaseRepository::&lt;DON'T KNOW WHAT GOES HERE SO LEFT IT EMPTY&gt;::htp://abc.com/repositores/my-releases/ -Drelease=true
  </code></pre>
  
  <p>Now when I am running above command it fails because value for 'layout' is not provided and I get exception and build fails.</p>
  
  <p>I couldn't find any information on what should be the value for 'layout', I have around 10 projects which I want to build and release after one another.</p>