今日救命 : 解决maven 编译时一直下载pom

前提: maven配置中的数据源是正确的,或者maven库里已有全部所需jar

把以下脚本执行在编译 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
原文地址:https://www.cnblogs.com/funkboy/p/12030719.html