参考博客:Windows下清理maven仓库中的lastUpdated文件新建clean.bat的文件主要修改REPOSITORY_PATH参数的值,为自己本地仓库的地址。@echo offset REPOSITORY_PATH=E:\maven\localRepositoryrem 正在搜索...for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /s /q %%i)rem 搜索完毕pause使用管理员权限执行文件