'Dependency in POM looks dimmed in Maven Dependency folder and can't be imported, how to fix?

Tried to import a class in Eclipse IDE after configuring it in the POM.XML file, and I can't import in class.

enter image description here

It looks differentiated, his icon is darker than the others

enter image description here

Import writing seems okay, but it gives me error 'The import io cannot be resolved':

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source