---
title: "Maven 中央仓库地址和lastUpdate文件删除"
author: "ych0108"
date: "2016-03-01T13:46:15Z"
tags: []
categories: ["编程语言"]
slug: "maven-lastupdate"
draft: false
lastmod: "2016-03-01T14:22:52Z"
id: 2279720
url: "https://ych0108.iteye.com/blog/2279720"
---

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(sunhao.java@gmail.com)
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