码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-09-27 21:45:41      阅读:668      评论:0      收藏:0      [点我收藏+]

标签:epo   hot   can   pom   opp   mvn   oba   strong   date   

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缺少依赖包,强制更新命令

标签:epo   hot   can   pom   opp   mvn   oba   strong   date   

原文地址:http://www.cnblogs.com/javabg/p/7603811.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!