@echo off
set REPOSITORY_PATH=D:\tools\path\repo\
rem 开始删除... 
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
    del /s /q %%i
)
rem 删除完成!!
pause
set REPOSITORY_PATH=(仓库路径例如  D:\java\apache-maven-3.6.1\maven-repo)
把这个路径换成你仓库路径,然后以管理员运行。(重要!)
建议把这段命令设置成bat文件,以便之后使用。
 

相关文章:

  • 2021-12-05
  • 2021-11-19
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-02-06
猜你喜欢
  • 2021-12-05
  • 2021-07-16
  • 2021-06-16
  • 2022-01-22
  • 2021-10-01
  • 2021-12-04
相关资源
相似解决方案