Search code examples
javamavennetbeanspom.xml

Error: Maven: Non parseable POM ... expected START_TAG or END_TAG not TEXT


I cannot figure this out for the life of me. Seems like not a hard issue at all.

POM:

enter image description here

Line underlined in red in the error line.


Solution

  • So I popped this into eclipse and it looks fine

    <?xml version="1.0" encoding="UTF-8"?>
    <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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>CENSORED</groupId>
        <artifactId>NeoImport</artifactId>
        <version>1.0-SNAPSHOT</version>
        <packaging>jar</packaging>
        <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <maven.compiler.source>1.8</maven.compiler.source>
            <maven.compiler.target>1.8</maven.compiler.target>
        </properties>
        <dependencies>
            <dependency>
                <groupId>org.neo4j.driver</groupId>
                <artifactId>neo4j-java-driver</artifactId>
                <version>1.0.3</version>
            </dependency>
        </dependencies>
    </project>
    

    In your screen capture your syntax highlight for the <?xml?> is off at the end. Do you happen to have a newline character before that very first line?

    Or if you copied pasted it from somewhere else that formats the text differently than your IDE (i.e. UNIX/OSX vs Dos/Windows) then that may cause issues too.