Delete the lastUpdate file that failed to update in the maven warehouse

Delete the lastUpdate file mca
/linux script
rmMaven.sh that failed to update in the maven warehouse

echo 正在搜索...
find . -name "*lastUpdated" | xargs rm -fr
echo 搜索完毕

windows script
rmMaven.bat

@echo off
rem create by sunhao([email protected])
rem crazy coder
 
rem -- 这里写你的仓库路径
set REPOSITORY_PATH=C:\repositorywindows
rem -- 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
    del /s /q %%i
)
rem 搜索完毕
pause

Guess you like

Origin blog.csdn.net/qq_40250122/article/details/108821695
Recommended