@echo off rem 这里写你的仓库路径 set REPOSITORY_PATH= '本地仓库路径' rem 正在搜索... for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /s /q %%i ) rem 搜索完毕 pause mac本删除办法 # 这里写你的仓库路径 REPOSITORY_PATH=~/Documents/tools/apac
批量删除lastUpdated for /r %i in (*.lastUpdated) do del %i 安装jar到本地仓库 mvn install:install-file -Dfile=D:/jar/slf4j-api-1.7.7.jar -DgroupId=org.slf4j -DartifactId=slf4j-api -Dversion=1.7.7 -Dpackaging=jar
转自:http://www.oschina.net/code/snippet_151849_49131 @echo off rem create by sunhao(sunhao.java@gmail.com) rem crazy coder rem 这里写你的仓库路径 set REPOSITORY_PATH=F:\study\apache-maven-3.0.3\repository rem 正在搜索... for /f "delims=" %%i in ('dir /b /s
set REPOSITORY_PATH=D:\maven_cpbsrem صشعثرث÷...for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /s /q %%i)rem ثرث÷حê±دpause 文件名:cleanLastUpdate.bat
报错信息如下: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE Failed to resolv