Maven 中央仓库地址和lastUpdate文件删除

Maven 中央仓库地址:

1. http://mvnrepository.com/ (本人推荐仓库)
2. http://www.sonatype.org/nexus/
3. http://repo1.maven.org/maven2
引自:http://blog.csdn.net/mynameissls/article/details/21223453

方法功能:删除Maven本地仓库的lastupdate,将横线下内容放到(cleanLastUpdate.bat)中,执行便可。(粗体字部分为自己的本地仓库地址)
--------------------------------------------------------
@echo  off
rem create by sunhao([email protected])
rem crazy coder
set REPOSITORY_PATH= D:\workBench\maven_repository
rem 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
    del /s /q %%i
)
rem 搜索完毕
pause

猜你喜欢

转载自ych0108.iteye.com/blog/2279720