天天看點

一個愚蠢的重複導包問題

Some problems were encountered while building the effective model for cn.zyx:buildvideowebsite:jar:0.0.1-SNAPSHOT
'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: mysql:mysql-connector-java:jar -> duplicate declaration of version (?) @ line 56, 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.
           

使用mave clean 時出現了這個警告,仔細檢視發現是mysql:mysql-connector-java:jar這個包不唯一,說明重複導包了,去pom檔案看了下确實是多導入了一個,删掉一個就好