有时候使用pom文件下载依赖文件的时候突然网络异常,可能会出现依赖文件出现破损,导致怎么都不能使用,也没有重新下载. 之前解决办法是找到出现破损的文件并删除,让其重新下载,但是这样效率很低,也很难找到哪个文件破损,一怒一下把整个maven本地仓库都 删了,这样就很得不偿失了. 其实只要一段dos命令就可以把仓库里的所有破损文件删除,快速又好用. @echo off set REPOSITORY_PATH=D:\tools\path\repo\ rem 开始删除... for /f "delims
转自: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
最近在使用支付宝.财付通这样的第三方支付,在使用支付宝过程中需要引入官方SDK方便开发,使用以下命令来将本地的jar装载到maven仓库中. 这里有几点需要注意点,我使用Windows10时,使用powershell 死活不可以,报错误:[ERROR] The goal you specified requires a project to execute but there is no POM in this directory 无奈使用cmd 就没问题了另外需要注意的是-Dfile的参数中不
所有maven依赖jar包地址:https://repo1.maven.org/maven2/org/apache/ 1. 安装jar包失败报错: The following artifacts could not be resolved: commons-math3:commons-math3:jar:3.4.1, commons-pool2:commons-pool2:jar:2.3: Could not find artifact commons-math3:commons-math3:j