title: uploading multiple files to Nexus using curl commands
body: <p>I'm currently working on getting a script to upload my artifacts to Nexus using CURL.</p>
  
  <p>I can get it to work with one artifact file without any problems using the command:</p>
  
  <pre><code>curl -v -F r={repo_id} -F hasPom=true -F e=jar -F file=@pom.xml -F file=@target/project.jar -u un:pwd {repo_url}
  </code></pre>
  
  <p>My project has both a jar containing the binaries and a jar containing the sources though. I would like to deploy both to the same location in my maven repo. I tried this with the curl command by adding a second file,</p>
  
  <pre><code>curl -v -F r={repo_id} -F hasPom=true -F e=jar -F file=@pom.xml -F file=@target/project.jar -F file=@target/project-sources.jar -u un:pwd {repo_url}
  </code></pre>
  
  <p>This essentially performs two seperate rest calls for each file, using the same pom. Which doesn't work since my Nexus doesn't allow updating artifacts.</p>
  
  <p>Is there a way to make this work, or can this only work by enabling the updating of artifacts? I would prefer not to enable this for obvious reasons.</p>