前两天在部署springboot的web项目的时候报错;
Some problems were encountered while building the effective model for com.example:demo04:war:0.0.1-SNAPSHOT
'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-data-jpa:jar -> duplicate declaration of version (?) @ line 31, column 21
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
根据报错提示
org.springframework.boot:spring-boot-starter-data-jpa:jar -> duplicate declaration of version (?) @ line 31, column 21
翻译过来就是
spring-boot-starter-data-JPA:jar版本重复声明!
在查询pom.xml文件里面
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-j