把以下腳本執行在編譯 windows shell腳本 轉載於https://blog.csdn.net/qq_36410795/article/details/73478614
@echo off rem create by NettQun rem 一下是你的maven庫路徑 set REPOSITORY_PATH=C:\xxxxxx y rem開始執行... for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*_remote.repositories"') do ( echo %%i del /s /q "%%i" ) rem 結束 pause