Reason: Because the index index of the local warehouse in maven has not been updated, it cannot be searched in the maven plugin of eclipse.
Solution:
1. Open the menu window-> show view –> other –> Maven -> maven repositories in eclipse
2. After opening, select local repositories –> local repository, right-click, select Build index.
Solution:
1. Open the menu window-> show view –> other –> Maven -> maven repositories in eclipse
2. After opening, select local repositories –> local repository, right-click, select Build index.