警告[WARNING] Some problems were encountered while building the effective model for
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.example.nrf:shaohua-backend:jar:1.0
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: mysql:mysql-connector-java:jar -> version 5.1.41 vs 8.0.15 @ line 99, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
解决办法:
需要确保依赖的唯一性
后面发现我在pom.xml文件中写了两个mysql-connection-java包,把一个注释掉就好了。
最后就解决啦~~
又跳出了一个坑,我知道,还有下一个坑在等着我,哈哈哈哈~~~