How to force maven update?

后端 未结 25 1990
失恋的感觉
失恋的感觉 2020-11-22 03:18

I imported my already working project on another computer and it started to download dependencies.

Apparently my internet connection crashed and now I get the foll

25条回答
  •  鱼传尺愫
    2020-11-22 04:01

    -U seems to force update of all dependencies.

    If you want to update a single dependency without clean or -U you could just remove it from your local repo and then build.

    The example below if for updating slf4j-api 1.7.1-SNAPSHOT:

    rm -rf ~/.m2/repository/org/slf4j/slf4j-api/1.7.1-SNAPSHOT
    mvn compile
    

提交回复
热议问题