title: Deploying an artifact, its sources and javadoc using maven's deploy:deploy-file plugin
body: <p>I'm stumped trying to deploy an artifact, its sources and its javadoc to our maven repository (Nexus). The sources and javadoc parameters seems to be ignored, and only the main jar specified in -Dfile is actually uploaded.</p>
  
  <p>Does anyone know what's wrong? Here's my command (I'm trying to put Whack into our local repository)</p>
  
  <pre><code>mvn deploy:deploy-file -Dfile=whack-1.0.0.jar \ 
                         -Dsources=whack-1.0.0-sources.jar \
                         -Djavadoc=whack-1.0.0-javadoc.jar \
                         -DgroupId=org.igniterealtime \                     
                         -DartifactId=whack \
                         -Dversion=1.0.0 \
                         -Dpackaging=jar \
                         -Durl=https://myhost.com/nexus/content/repositories/thirdparty/  
  </code></pre>