Force re-download of release dependency using Maven

前端 未结 13 1932
闹比i
闹比i 2020-11-28 20:05

I\'m working on a project with dependency X. X, in turn, depends on Y.

I used to explicitly include Y in my project\'s pom. However, it was not used and to make thin

13条回答
  •  情歌与酒
    2020-11-28 20:32

    If you know the group id of X, you can use this command to redownload all of X and it's dependencies

    mvn clean dependency:purge-local-repository -DresolutionFuzziness=org.id.of.x
    

    It does the same thing as the other answers that propose using dependency:purge-local-repository, but it only deletes and redownloads everything related to X.

提交回复
热议问题