Maven Repository: Search/Browse/Explore
日常踩坑:
用maven构建springboot项目的第一步,引入spring-boot-starter-parent的时候,引入的不是依赖,而是parent
错误写法:注意副标签是<dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.12.RELEASE</version>
<type>pom</type>
</dependency>
正确写法:注意副标签是<parent>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/>
</parent>
参考链接:
https://www.cnblogs.com/lenve/p/10694456.html
20211212_Invalid packaging for parent POM_invalid packaging for parent pom org.springframewo-CSDN博客