我正在使用 Eclipse 2021.03
在我的專案上發出 maven clean install 時(從 Eclipse,右鍵單擊父專案 >?? Run as > Maven Clean,然后與 Maven Install 相同),Maven 拋出錯誤:
“ maven-ear-plugin:2.10:ear (default-ear) @ my-services-ear --- [警告] 注入錯誤:org.codehaus.plexus.archiver.jar.JarArchiver java.lang.ExceptionInInitializerError ”
執行 maven-ear-plugin 目標時。
uj5u.com熱心網友回復:
從 更新 maven-ear-plugin 版本,在我的情況下如下所示,因為我使用<properties>部分來定義依賴項的版本。所以,在你的情況下,你可能只需要更新依賴<version>部分。<maven-ear-plugin>
<maven-ear-plugin.version>2.10</maven-ear-plugin.version>
至
<maven-ear-plugin.version>3.0.2</maven-ear-plugin.version>
為我解決了這個問題。
IntelliJ 的相同問題和修復。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/527017.html
標籤:蚀行家
