maven 打包异常记录

我们可以看看一个重要的异常:
'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-test
经过检查pom文件 果然是spring-boot-starter-test
引用重复,平时直接运行项目不会产生什么问题,但是使用 mvn spring-boot:run
则会检查出这个错误。