maven download jar package problem

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:

Java code   Favorite code
  1. del D:\java\maven\maven2_repository\*lastUpdate* /a/s  

 

Java code   Favorite code
  1. find ./ -name "*lastUpdated" | xargs -i -t rm {} -rf  

 Delete jar files less than 10K

Java code   Favorite code
  1. find ./ -size -10k -name ".jar" |  xargs -i -t rm {} -rf  

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326364767&siteId=291194637