How to clean Heroku dependency cache (unmanaged maven dependencies)

后端 未结 4 1493
我在风中等你
我在风中等你 2021-02-05 15:01


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 this article.

Heroku c

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 15:35

    This doesn't answer the question directly, but if you're having the same issue with Clojure project (using Leiningen), there's a better way to handle this than purging cache with each build: use :update :always property for the repository you're working with. (https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L91)

    :repositories [["releases" {:url "http://blueant.com/archiva/internal"
                                ;; How often should this repository be checked for
                                ;; snapshot updates? (:daily, :always, or :never)
                                :update :always}]]
    

提交回复
热议问题