title: Maven - deploy dependencies to remote repository
body: <p>I have a few projects with LOTS of maven dependencies.  When I invoke the command mvn deploy (or some variation of it), I would like to not only have the project itself deployed to the remote repository, but also all of its dependencies as well.  Is this possible?  I see many 'similar questions' on this site, but I can't seem to find anything that is as simply put as this.  Everything else I've seen seems to expect some additional functionality. I simply want to deploy my project, plus all of its dependencies to the remote repo.  I'm using the maven compiler plugin 1.5</p>
  
  <p>This is a snippet of my settings.xml.  Any idea what I'm missing?</p>
  
  <pre><code>&lt;mirrors&gt;
  &lt;mirror&gt;
    &lt;!--This is used to direct the public snapshots repo in the 
        profile below over to a different nexus group --&gt;
    &lt;id&gt;nexus-public-snapshots&lt;/id&gt;
    &lt;mirrorOf&gt;public-snapshots&lt;/mirrorOf&gt;
    &lt;url&gt;http://{ourServer}/nexus/content/groups/public-snapshots&lt;/url&gt;
  &lt;/mirror&gt;
  &lt;mirror&gt;
    &lt;!--This sends everything else to /public --&gt;
    &lt;id&gt;nexus&lt;/id&gt;
    &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
    &lt;url&gt;http://{ourServer}/nexus/content/groups/public&lt;/url&gt;
  &lt;/mirror&gt;
    &lt;/mirrors&gt;
  &lt;profiles&gt;
  &lt;profile&gt;
    &lt;id&gt;development&lt;/id&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;url&gt;http://central&lt;/url&gt;
        &lt;releases&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/releases&gt;
        &lt;snapshots&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/snapshots&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
   &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;url&gt;http://central&lt;/url&gt;
        &lt;releases&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/releases&gt;
        &lt;snapshots&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/snapshots&gt;
      &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
  &lt;/profile&gt;
  &lt;profile&gt;
    &lt;!--this profile will allow snapshots to be searched when activated--&gt;
    &lt;id&gt;public-snapshots&lt;/id&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;public-snapshots&lt;/id&gt;
        &lt;url&gt;http://public-snapshots&lt;/url&gt;
        &lt;releases&gt;&lt;enabled&gt;false&lt;/enabled&gt;&lt;/releases&gt;
        &lt;snapshots&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/snapshots&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
   &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
        &lt;id&gt;public-snapshots&lt;/id&gt;
        &lt;url&gt;http://public-snapshots&lt;/url&gt;
        &lt;releases&gt;&lt;enabled&gt;false&lt;/enabled&gt;&lt;/releases&gt;
        &lt;snapshots&gt;&lt;enabled&gt;true&lt;/enabled&gt;&lt;/snapshots&gt;
      &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
  &lt;/profile&gt;
   &lt;/profiles&gt;
  </code></pre>
  
  <p>Thanks in advance<br>
  ~j</p>