maven 无法引入包 报错 处理方式

   <!--orderquery thrift client定义-->
        <dependency>
            <groupId>com.sankuai.qcs</groupId>
            <artifactId>order-client</artifactId>
            <version>1.5.7</version>
        </dependency>

        <!--订单提供的一些常量/返回值说明、枚举定义等,方便业务方,推荐引入-->
        <dependency>
            <groupId>com.sankuai.qcs</groupId>
            <artifactId>order-common</artifactId>
            <version>1.3.6</version>
        </dependency>

我项目里面引入了包 

com.sankuai.qcs 的order-client  1.5.7  
原来是1.1.7
引入完毕之后,一直报错,重新下载也报错,
解决方法就是把本地仓库的 包删掉:
首先找到本地仓库: file==>other settings==>default settings:

找到仓库路径:/Users/yinfuqing/.m2/prepository;

注意到:包的 groupId =com.sankuai.qcs 然后里面有个文件夹:order-client 和order-common 删掉然后从新下载就行;




原文地址:https://www.cnblogs.com/aspirant/p/11284375.html