導入項目的時候,運行時出現了 Bug – 錯誤: 找不到或無法加載主類 xxxx
通過 eclipse
上的 Problem
描述 ,找到對應項目的 errors
描述發現錯誤描述爲
Description Resource Path Location TypeArchive for required library: 'C:\Users\xxx\.m2\repository\commons-lang\commons-lang\2.6' cannot be read or load in project `xxxx`
在經過eclipse
的alt+F5
強制更新無效後,根據提示找到maven
倉庫報錯的目錄,回到目錄找到地址 C:\Users\xxx\.m2\repository\commons-lang\commons-lang\2.6
並刪除 commons-lang
將該目錄下的所有文件刪除,重新更新項目,會自動重新下載對應的 maven 文件