maven 本地仓库 删除 lastUpdated 文件

@echo off
rem 这里写你的仓库路径
set REPOSITORY_PATH=D:Java epo
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%*lastUpdated*"') do (
del /s /q %%i
)
rem 搜索完毕
pause

原文地址:https://www.cnblogs.com/fengyexjtu/p/5123130.html