IDEA Maven Dependencies marked red error

When the dependency of packet red items appear maven idea, as shown below:

 

The first step: Expand to the lowest level directory, as follows:

 

 

Step Two: Find a local maven repository in the folder and remove (Figure 2 below), maven local repository (a figure below)

 

Open the newspaper to find local warehouses red folder (listed here only a real find and delete all)

 

 The third step: Open the pom.xml file will depend cut away, as follows:

 

 

Cut left, lower left corner there will be prompt, click Import Changes, Idea maven dependencies will be deleted 

 

 The figure below shows the dependencies maven deleted

 

 

 

Step four: pom file back just delete the dependency, click on the bottom right of the Import Changes prompt again, Idea automatically import dependencies

 

 

 Finally: Red resolve reported problems:

After the end of the lower right corner to read the article, see maven, to solve the problem!

 

 

Guess you like

Origin www.cnblogs.com/jifengblog/p/12387656.html