记一次IDEA关于maven的BUG

遇到错误:
[ERROR] Failed to execute goal on project ecif-task-frame: Could not resolve dependencies for project … Failure to find com.xxx.xxx:yyyy:jar:1.0.0 in http://123.56.183.194:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of releases has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException ;

这个com.xxx.xxx:yyyy:jar:1.0.0 包是我们公司自己内网的包, 但是我们公司内网并不是 上面那个ip地址, 所以他下载不下来.
那么问题来了, 这个ip地址到底是哪里的, 因为我配置了我自己的settings文件如图:
在这里插入图片描述
这里我用的是配置了公司的settings文件, 里面也没有上面错误的那个ip地址.
但是这里注意: 我这里是用的override默认settings文件
所以我又去他默认settings文件里面找, 是否有这个ip地址, 果然:
在这里插入图片描述

也就是说 我指定了自己的settings文件并没有卵用, 只是在import 的时候是从指定仓库下载, 但是在打包的时候他又去找自己的默认settings文件了.
所以问题到这里就解决了, 我把默认settings文件改成公司的settings文件, 不用idea自带的override了.

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值