How to clean old dependencies from maven repositories?

前端 未结 9 1879
小鲜肉
小鲜肉 2020-12-14 05:19

I have too many files in .m2 folder where maven stores downloaded dependencies. Is there a way to clean all old dependencies? For example, if there is a dependency with 3 di

9条回答
  •  猫巷女王i
    2020-12-14 06:05

    Just clean every content under .m2-->repository folder.When you build project all dependencies load here.

    In your case may be your project earlier was using old version of any dependency and now version is upgraded.So better clean .m2 folder and build your project with mvn clean install.

    Now dependencies with latest version modules will be downloaded in this folder.

提交回复
热议问题