How to clean Heroku dependency cache (unmanaged maven dependencies)

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

    Login to heroko by console, go to the git repository directory of your app, run the following commands and try to push to the heroku git repository again

    $ heroku config:set MAVEN_CUSTOM_GOALS="clean package"
    $ heroku config:set MAVEN_CUSTOM_OPTS="--update-snapshots -DskipTests=true"
    

    Now, it will download the latest SNAPSHOT from the repository before build. Refer this heroku build pack for java for more details.

    You can also configure a custom settings.xml for your maven, refer this heroku documentation.

提交回复
热议问题