Mac:
vi delete_mvn_lastUpdated.sh
# 这里写你的仓库路径
REPOSITORY_PATH=/Users/anran/Documents/Applications/Maven/repository
echo 正在搜索...
find $REPOSITORY_PATH -name "*lastUpdated*" | xargs rm -fr
echo 搜索完
设置执行权限:
chmod +x ./delete_mvn_lastUpdated.sh
执行文件:
./delete_mvn_lastUpdated.sh