title: Maven: Trouble deploying third party JAR to a remote repository
body: <p>I'm using Maven 3.  I'm trying to deploy a third party artifact to a remote repository but am getting a strange error.  The command I'm using to deploy is</p>
  
  <pre><code>mvn deploy:deploy-file -DgroupId=com.myco.util.ant \
    -DartifactId=selenium-ant-task \
    -Dversion=1.4 \
    -Dpackaging=jar \
    -Dfile=/Users/davea/.m2/repository/com/myco/util/ant/selenium-ant-task/1.4/selenium-ant-task-1.4.jar \
    -DrepositoryId=sonatype-nexus \
    -Durl=http://sonatype.myco.com/nexus/content/repositories/releases
  </code></pre>
  
  <p>And the error I get when I run this command is</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file (default-cli) on project maven-selenium-plugin: The parameters 'url' for goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file are missing or invalid -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  </code></pre>
  
  <p>What's going on here?  I have defined my repositoryId, "ssonatype-nexus" in my ~/.m2/settings.xml file and verified the credentials in there are correct.</p>
  
  <p>Thanks for any help, - Dave</p>