title: How to pass in credentials when connecting to sonatype nexus (anonymous login disabled)?
body: <p>In eclipse, the m2eclipse plugin will prompt me for my credentials when I'm building a maven2 project. And it compiles fine.</p>
  
  <p>But if I now try to run "mvn install" from the command line, I get an artifact not found error. How do I add the username/password into my pom.xml in order to solve this problem.</p>