Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Message: "Project build error: Non-parseable POM

Tags:

java

maven

<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"> 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>com.cucumber</groupId>
    <artifactId>MavenCucumberPrototype</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>MavenCucumberPrototype</name>
    <url>http://maven.apache.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>


        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-java</artifactId>
            <version>1.1.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-picocontainer</artifactId>
            <version>1.1.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-junit</artifactId>
            <version>1.1.2</version>
            <scope>test</scope>
        </dependency>
        </dependencies>
        </project>
like image 638
vikas Avatar asked Jan 07 '23 06:01

vikas


2 Answers

My problem was a internet problem while download the dependencies, so some files was breaking. I solved deleting the directory ".m2" and executing mvn clean install to re-install the dependencies.

like image 135
Dyonnatan Avatar answered Jan 16 '23 17:01

Dyonnatan


You've got an end-tag dependencies but no start-tag dependencies

(missing tag should be between properties-tag and firts dependency)

like image 41
Jan Piel Avatar answered Jan 16 '23 18:01

Jan Piel