maven缺少依赖包,强制更新命令

Posted 关键步就几步

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven缺少依赖包,强制更新命令相关的知识,希望对你有一定的参考价值。

mvn clean install -e -U

-e详细异常,-U强制更新 

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

Just in case someone wants only update project‘s snapshot dependencies and doesn‘t want to install artifact:

            mvn dependency:resolve -U 

Don‘t forget to reimport dependencies in your IDE. In IDEA you need to right click on pom file and choose Maven -> Reimport

 

以上是关于maven缺少依赖包,强制更新命令的主要内容,如果未能解决你的问题,请参考以下文章

maven重新拉取依赖命令

IntelliJ IDEA更新maven依赖包

IDEA - 强制更新maven依赖,立即生效的办法

IDEA - 强制更新maven依赖,立即生效的办法

IDEA - 强制更新maven依赖,立即生效的办法

linux安装rpm包时有的有依赖关系,如何强制安装?