【詳】Maven中解決jar衝突方案(親身測試)
阿新 • • 發佈:2018-12-23
Maven開發中jar衝突最令人頭疼:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: net.sf.ezmorph:ezmorph:jar -> duplicate declaration of version ${ ezmorph.version} @ line 1030, column 16
[ERROR] Child module E:\EclipseHomeWork\parent\upiweb-cms of E:\EclipseHomeWork\parent\pom.xml does not exist @
[ERROR] Child module E:\EclipseHomeWork\parent\upiweb-cms0719 of E:\EclipseHomeWork\parent\pom.xml does not exist @
[ERROR] Child module E:\EclipseHomeWork\parent\upiweb- interface of E:\EclipseHomeWork\parent\pom.xml does not exist @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.upi.web:upiweb-parent:1.0-SNAPSHOT (E:\EclipseHomeWork\parent\pom.xml) has 3 errors
[ERROR] Child module E:\EclipseHomeWork\parent\upiweb- cms of E:\EclipseHomeWork\parent\pom.xml does not exist
[ERROR] Child module E:\EclipseHomeWork\parent\upiweb-cms0719 of E:\EclipseHomeWork\parent\pom.xml does not exist
[ERROR] Child module E:\EclipseHomeWork\parent\upiweb-interface of E:\EclipseHomeWork\parent\pom.xml does not exist
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
反正就是解決衝突問題的
網上看了好多部落格或者CSDN,感覺都是放屁似的,根本沒有一點用,當時可能博主轉發的或者什麼的,為了欺騙光大程式設計師的瀏覽次數吧
其實也不明白他們為啥總結,那不就是對之前錯誤的認識。
百度了N種方法,就是解決不了,說用
為什麼要安裝一
些外掛呢?那不是廢話啊,肯定只有一個好處,好用啊,一個好用的外掛可以給你節省多少時間
廢話不多說直接上安裝步驟:
File --> settings --> plugs -->
我本地是安裝好的(之前太忙了,沒寫這篇部落格)
安裝完之後呢,具體是什麼作用呢,我相信你只有你們用的時候自然會關注的
開啟pom.xml ----> Dependency Analyzer
然後開啟之後長這個比樣:
然後開始 右鍵: excluede 解決了
文章來源網路,版權歸作者本人所有,如侵犯到原作者權益,請與我們聯絡刪除或授權事宜
如果有誤,請聯絡作者更改,謝謝,本人微信:void666666