maven pulls the jar package from nexsu, and sometimes the package cannot be downloaded due to network problems. At this time, there will be a *lastUpdated.properties file in the folder, and the existence of this file will cause the server to not download the package next time. Time to delete this file so that maven can download it again. The following are the commands to delete the file in batches under windows and linux respectively:
- del D:\java\maven\maven2_repository\*lastUpdate* /a/s
- find ./ -name "*lastUpdated" | xargs -i -t rm {} -rf
Delete jar files less than 10K
- find ./ -size -10k -name ".jar" | xargs -i -t rm {} -rf