1. Problem description
When using IDEA for programming, I found that there are many red flags in maven dependencies, as shown in the figure below:
Although it does not affect the project operation, it is indeed a problem
Reason: The main reason for this phenomenon is
由于网络原因导致没有将Maven的依赖下载完整
that there are many.lastUpdated
files ending with
Two, the solution
Delete all the files ending with .lastUpdate in the maven warehouse, and re-download them as follows in the idea, the dependency will not be reported red
(1) Switch to maven's local warehouse
(2) Open the cmd command line in the current directory
(3) Execute the command:for /r %i in (*.lastUpdated) do del %i
(4) Re-download the dependency in the idea, and it will not report red