博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
springboot maven打包一直失败
阅读量:7169 次
发布时间:2019-06-29

本文共 1187 字,大约阅读时间需要 3 分钟。

问题描述:

  

Non-resolvable import POM: Failure to find org.springframework:spring-framework-bom:pom:3.1.1.RELEASE in http://maven.aliyun.com/nexus/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced @ org.springframework.boot:spring-boot-dependencies:2.1.0.RELEASE, C:\Users\111\.m2\repository\org\springframework\boot\spring-boot-dependencies\2.1.0.RELEASE\spring-boot-dependencies-2.1.0.RELEASE.pom, line 2669, column 25

问题的意思是不能导入org.springframework:spring-framework-bom:pom:3.1.1.RELEASE

一直以为是自己的pom文件结构出问题了,甚至还想到是不是setting文件出问题了,后面试了其他的项目都行,唯独这个项目不行应该不是setting文件的问题,

去除:

org.springframework.boot
spring-boot-starter-parent
2.1.0.RELEASE
就可以,但是我就是要这个啊,怎么会出问题呢?? 于是一直找。。。。。没找到类似的问题 突然在想:org.springframework:spring-framework-bom:pom:3.1.1.RELEASE 这个pom我没用到啊,而且版本应该是2.1.0, 所以搜了一下3.1.1.RELEASE 发现了定义
资源时有个这个 
3.1.1.RELEASE
去除之后,发现可以打包。 所以猜测:虽然parent引入的是2.1.0版本,但是spring.version是个特殊的属性,会覆盖parent的版本。 补充一下:
请路过的大神指正一下,是不是这个理解的

转载于:https://www.cnblogs.com/lbs-171222/p/10437848.html

你可能感兴趣的文章
Mysql主从复制
查看>>
高斯消元法解非奇异线性方程组的MATLAB程序
查看>>
configure:error: Package requirements (libffi >= 3.0.0) were not met
查看>>
java 抽象类与接口的区别
查看>>
Linux驱动模块编译模板
查看>>
我的友情链接
查看>>
MySQL 5.6.12 安装
查看>>
MCSA&MCP认证证书
查看>>
我的友情链接
查看>>
进阶篇第五期:UIScrollView的那点事儿
查看>>
CSS系列:CSS中盒子模型
查看>>
2017网络安全产业研究报告学习笔记
查看>>
AES&FEC GPON中的加密与纠错
查看>>
python 字典嵌套
查看>>
Android系统名词解释汇总
查看>>
推荐开发工具系列之--PyF5(自动刷新)
查看>>
Nginx配置
查看>>
Josephus问题的不同实现方法与总结
查看>>
linux监控系统_Zabbix概念(2)
查看>>
JMM & synchronized概述
查看>>