解决办法:命令中增加个参数U,如下: mvn -U clean install -Dmaven.test.skip=true
use -U
parameter to force a check for the updated releases and snapshots on remote repositories, and resolve this issue.
Actually you can find this solution by using mvn -h
to show Maven help
查资料看着还有的说删掉*.lastUpdated文件,但我没看到这样的文件。