title: How to clean Heroku dependency cache (unmanaged maven dependencies)
body: <p><br>
    I have to use an unmanaged SNAPSHOT dependency in my java/maven heroku app.
  I do this using a project-local maven repository as desribed in <a href="https://devcenter.heroku.com/articles/local-maven-dependencies" rel="noreferrer">this article.</a></p>
  
  <p>Heroku caches the dependencies between builds. Unfortunatly Heroku does not notice if the SNAPSHOT Version changes and keeps on using the cached dependency. This leads to compilation errors as I depend on changes in the SNAPSHOT version.</p>
  
  <p><em>Is there a way to manually or automatically clean this dependency cache?</em></p>
  
  <p>I found this <a href="http://www.jcabi.com/jcabi-heroku-maven-plugin/changes-report.html" rel="noreferrer">maven plugin</a> (it does a local build and pushes the resulting artefacts to heroku) but its not really the way I want to do it.</p>
  
  <p>One could argue its a bad practice to use this snapshot dependency in the first place but I think there are other more or less valid reasons for cleaning the cash e.g. leaking storage as the unmanaged dependencies are not even removed if they are deleted from the project local repository.</p>
  
  <p>I appreciate your answer</p>