Here is my schema. Eclipse shows "The markup in the document following the root element must be well-formed."
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>testing-projects</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ProjectForTests</name>
</project>
CodePudding user response:
The error indicates that there is content AFTER the end of the root element, which means after the root element end marker. Your screenshot is obscuring that line, so we can't tell if you have anything unusual there.
CodePudding user response:
I have this error in all my maven projects in Eclipse. Indeed, my pom.xml is valid, and when I execute mvn clean install, it works fine. I think it is a strange mistery that always has failed (at least for me).
Anyone knows why Eclipse does not like the warning because of grammar constrains?
Indeed, if I create a project from the scratch with spring initializier, the pom has the same warning in Eclipse :(