The problem of red wavy lines under Plugins and Dependencies under the maven project

The problem of red wavy lines under Plugins and Dependencies under the maven project

1. The specific situation

  1. Red wavy lines appear in Plugins in Maven Project

2. Solution:

  1. File --> Settings --> Compiler --> 勾选:Build project automatically
  2. Restart IDEA
    Insert picture description here

1. The specific situation

  1. Red wavy lines appear in Dependencies in Maven Project
  2. Query local warehouse: the jar package already exists
    Insert picture description here

2. Solution:

  1. Remove the corresponding information from the POM file!
  2. Perform Maven operation: clean
  3. Refill the original dependencies into the POM file
  4. Return to normal, no more red wavy lines

Solution summary:

Solution 1:
Modify the pom configuration file, delete the dependencies marked in red, and click reimport, then add the wrong dependencies again, and then reimport

Option 2
From deleting the file directory in the local warehouse, force maven to download the package again

Guess you like

Origin blog.csdn.net/weixin_44505194/article/details/105159877