How to force maven update?

后端 未结 25 2396
失恋的感觉
失恋的感觉 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:05

    If your local repository is somehow mucked up for release jars as opposed to snapshots (-U and --update-snapshots only update snapshots), you can purge the local repo using the following:

     mvn dependency:purge-local-repository
    

    You probably then want to clean and install again:

     mvn dependency:purge-local-repository clean install
    

    Lots more info available at https://maven.apache.org/plugins/maven-dependency-plugin/examples/purging-local-repository.html

提交回复
热议问题