title: How do I fix this error when publishing to Nexus from Gradle
body: <p>I'm getting the error </p>
  
  <pre><code>Error deploying artifact 'au.com.company:library:jar': Error deploying artifact: Resource to deploy not found: File: http://nexus:8081/content/repositories/snapshots/au/com/company/library/2.1-SNAPSHOT/library-2.1-20140925.222243-1.jar does not exist
  </code></pre>
  
  <p>when publishing to Maven from Gradle with the command:</p>
  
  <pre><code>gradle publish
  </code></pre>
  
  <p>What could cause this?</p>