maven - maven无法从nexus下载jar
问题描述
有一些误会
[ERROR] Failed to execute goal on project vinsuan-road-platform-comm: Could not resolve dependencies for project com.vinsuan.road.paltform:vinsuan-road-platform-comm:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.vinsuan4cloud:vinsuan-common-core:jar:1.0.0: Failed to read artifact descriptor for com.vinsuan4cloud:vinsuan-common-core:jar:1.0.0: Failure to find com.vinsuan4cloud:vinsuan:pom:1.0.0 in http://xxx.xxx.xxx.xxx:9981/repository/sps_group/ was cached in the local repository, resolution will not be reattempted until the update interval of sps_group 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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :vinsuan-road-platform-comm`enter code here`
http://xxx.xxx.xxx.xxx:9981是出公司nexus url,所以很抱歉。</p>
然后我发现了一些类似的问题,他们的回答是版本不匹配,但是,vinsuan-common-core.jar 只有一个版本,所以我不知道是什么,我使用了一些操作,比如 clean 、compile、install、mvndependeny :sources,但是ide点错了。</p>
解决方案
错误说Failure to find com.vinsuan4cloud:vinsuan:pom:1.0.0
。pom
在 repo旁边应该有一个文件jar
,以便 maven 能够解决依赖关系
推荐阅读
- google-cloud-platform - 谷歌语音转录
- javascript - 如何将字符串转换为具有属性和函数引用的 Javascript 对象?
- c# - 不切实际的烦人“标准表达式中的无效数据类型”
- powershell - 使用powershell删除Sharepoint在线列表项
- reactjs - REACT :将组件传递给将实现组件操作的函数
- xcode - 为osx设置地图以及用户当前位置
- java - 如何以多部分的形式发送响应
- system-verilog - 在系统verilog中循环对象的多维数组元素的标准方法是什么?
- python - 如何单击 Selenium 中的角度下拉菜单
- css - CSS 过渡仅在不活动时