删除maven仓库中的更新失败的lastUpdate文件

删除maven仓库中的更新失败的lastUpdate文件
mca/linux脚本
rmMaven.sh

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

windows脚本
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

猜你喜欢

转载自blog.csdn.net/qq_40250122/article/details/108821695
今日推荐