maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is

The IDEA pom.xml file reported an error
Element ‘dependency’ cannot have character [children], because the type’s content type is element-onThe picture effect

The reason:
Introduction & lt; dependency> . < /dependency> Invalid format

Solution:
1. Remove all carriage returns and line feeds from the part with the wrong format
2. Format (Ctrl + Alt + L)

Read More: