Maven下载的jar包为.lastUpdated类型,使用以下命令清楚此类型的jar包:
windows系统:
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i
linux系统:
find /app/maven/localRepository -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;
find /app/mujup/maven/localRepository -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;
Plugings报红线,下载的jar包为.lastUpdated类型,出现此问题的原因:没有配置setting文件中的镜像,导致jar包下载失败
解决方法:
//本地maven地址
localRepository>D:\maven\repository-3.5.4</localRepository>
//阿里云镜像
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>