How to clean Heroku dependency cache (unmanaged maven dependencies)

后端 未结 4 1466
我在风中等你
我在风中等你 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:38

    There's a branch of the java buildpack that clears maven cache. To use it, configure your app to use the cache_clear branch:

    heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-java.git#cache_clear

    ===Update===

    There's a plugin that clears cache on any app. Install it and run the purge-cache command.

    $ heroku plugins:install https://github.com/heroku/heroku-repo.git

    $ heroku repo:purge_cache -a appname

提交回复
热议问题