当前位置:网站首页>一. 常见bug——pom文件的project标签爆红
一. 常见bug——pom文件的project标签爆红
2022-07-21 00:37:00 【这不比博人传燃?】
https://blog.csdn.net/weixin_42649056/article/details/109350851
具体问题:
加上下面依赖时,project标签报错!
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
</parent>
如何解决?
加上<relativePath />
如下:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
<relativePath />
</parent>
为啥?
relativePath标签作用:指定查找路径。
maven查找依赖的顺序:…/pom.xml(不写这个<relativePath />
配置,默认<relativePath >../pom.xml<relativePath />
) > 本地仓库 > 远程仓库。
若直接加上<relativePath />
意思是直接中间为空值,没有指定先查找路径,则直接去本地仓库,然后远程仓库中去找。
边栏推荐
- Icml2022 Awards announced: 15 outstanding papers, selected by Fudan University, Xiamen University and Shanghai Jiaotong University
- STM32F103 realizes led breathing lamp program
- Colon usage video 41 13.3 Target detection and bounding box QA 13.4 anchor box
- 关于项目编译工具ninja、make、cmake的区别与优劣
- 游戏心理学
- 图片、视频修复并超分 - Real-ESRGAN项目使用(一) | 机器学习
- Clickhouse-CPU内存资源优化配置
- New research of Stanford and meta AI: Data pruning is more important than we think on the road to AgI
- STM32F103按键控制LED程序
- 史上最全的mysql数据类型汇总(下)
猜你喜欢
20220720学习反思
Qdu summer training first week limited time training 1
看懂RTK定位,这一篇就够啦!
Vite 配置 cdn 加载资源
图片、视频修复并超分 - Real-ESRGAN项目使用(一) | 机器学习
02_ UE4 advanced_ HP strip and blood deduction mechanism
Overview and deployment of redis (master-slave replication, sentinel mode, cluster)
iNFTnews | 元宇宙浪潮下,企业正通过AR和VR技术改善客户体验
CTF-合天WEB漏洞靶场
冒號用法 視頻41 13.3. 目標檢測和邊界框 QA 13.4錨框
随机推荐
Ros2 introductory tutorial | action communication and user-defined interface
越来越多的场景和行业开始与元宇宙扯上关系
“为了买台手机,研究大半个月后仍然无从选择”
Dynamic memory management
Hands on moveit2 | introduction and installation
NUMA 的平衡和调度
从20s优化到500ms,我用了这三招
ASCII码与16进制转换表
Raspberry pie 3B builds Flink cluster
ipset v7.10: Kernel error received: set type not supported
VMware下配置kali(一)
CTF-合天WEB漏洞靶场
聊聊Redis内存优化的7个神技
Simple understanding -- JVM
2163. Minimum difference of sum after deleting elements [DP + heapq]
UE4GamePlay框架
Recursive implementation of combinatorial enumeration
史上最全的mysql数据类型汇总(下)
Prevent duplicate insert data in SQLite
2022-07-20:以下go语言代码是关于json 和 context的,输出什么?A:{};B:{“a“:“b“};C:{“Context“:0};D:不确定。 package main imp