title: artifact is not uploaded to Nexus repository via curl command
body: <p>Follow instruction on this page:</p>
  
  <p><a href="https://support.sonatype.com/entries/22189106-How-can-I-programatically-upload-an-artifact-into-Nexus-" rel="nofollow">https://support.sonatype.com/entries/22189106-How-can-I-programatically-upload-an-artifact-into-Nexus-</a></p>
  
  <p>I was able to upload artifact to repository Australia by using this command:</p>
  
  <pre><code>curl -v -u admin:admin123 --upload-file RE_0.0.0.19.tar.gz http://nexus1.ccorp.com/nexus/content/repositories/Australia/RE_0.0.0.19.tar.gz
  </code></pre>
  
  <p>That doesn't create POM file or has artifactId associate with, which mean I won't able to query for latest build in that repository.</p>
  
  <p>I then tried this command:</p>
  
  <pre><code>curl -v -F r=releases -F hasPom=false -F e=tar.gz -F g=Australia -F a=RE -F v=0.0.0.19 -F p=tar.gz -F file=RE_0.0.0_19.tar.gz -u admin:admin123 http://nexus1.ccorp.com/nexus/service/local/artifact/maven/content
  </code></pre>
  
  <p>I got this log with no error, but artifact is not uploaded:</p>
  
  <p>Hostname was NOT found in DNS cache
    Trying 10.10.5.92...
  Connected to nexus1.ccorp.com (10.10.5.92) port 80 (#0)
  Server auth using Basic with user 'admin'
  POST /nexus/service/local/artifact/maven/content HTTP/1.1
  Authorization: Basic YWRtaW46YWRtaW4xMjM=
  User-Agent: curl/7.35.0
  Host: nexus1.ccorp.com
  Accept: <em>/</em>
  Content-Length: 852
  Expect: 100-continue
  Content-Type: multipart/form-data; boundary=------------------------929d6986ddb3024d</p>
  
  <p>HTTP/1.1 100 Continue
  HTTP/1.1 201 Created
  Date: Tue, 20 Oct 2015 20:29:11 GMT
  Server Nexus/2.11.4-01 Noelios-Restlet-Engine/1.1.6-SONATYPE-5348-V8 is not blacklisted
  Server: Nexus/2.11.4-01 Noelios-Restlet-Engine/1.1.6-SONATYPE-5348-V8
  X-Frame-Options: SAMEORIGIN
  X-Content-Type-Options: nosniff
  Content-Type: text/html;charset=UTF-8
  Content-Length: 85</p>
  
  <p>Connection #0 to host nexus1.ccorp.com left intact
  {"groupId":"Australia","artifactId":"RE","version":"0.0.0.19","packaging":"tar.gz"}</p>