Plugin 'org.apache.maven.plugins:maven-resources-plugin:2.7' not found less... (Ctrl+F1)問題解決

打豆豆。發表於2018-11-04

在匯入父工程時候,pom.xml中一個資源外掛maven找不到,清理,重新插入,都不行;
d

解決辦法,使用清理外掛清理下下載失敗的jar,maven工程中重新整理,清理,重新插入解決了報錯問題;
清理

cleanLastUpdated.bat原始碼如下;
把路徑更改為自己的倉庫的路徑;

set REPOSITORY_PATH=G:\tools\apache-maven-3.5.4\repository
rem 正在搜尋...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
    del /s /q %%i
)
rem 搜尋完畢
pause

相關文章