Getting error while running maven project from cmd. Adding screenshot for reference. | Selenium Forum
D
Divya Agarwal Posted on 10/08/2020

Hi Team,

 

I'm getting error while running maven project from cmd. Adding screenshot for reference.

 

My pom.xml:

 

<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>com</groupId>

  <artifactId>NewMavenProject</artifactId>

  <version>0.0.1-SNAPSHOT</version>

  

  <dependencies>

  <!-- https://mvnrepository.com/artifact/org.testng/testng -->

<dependency>

    <groupId>org.testng</groupId>

    <artifactId>testng</artifactId>

    <version>7.0.0</version>

</dependency>

  

  </dependencies>

  

  <build>

<plugins>

<!-- Compiler plug-in -->

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.8.1</version>

<configuration>

<source>${jdk.level}</source>

<target>${jdk.level}</target>

</configuration>

</plugin>

<!-- Below plug-in is used to execute tests -->

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

        <version>3.0.0-M4</version>

<configuration>

<suiteXmlFiles>

<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>

<!-- TestNG suite XML files

<suiteXmlFile>src/test/resources/suiteA.xml</suiteXmlFile>

<suiteXmlFile>src/test/resources/suiteB.xml</suiteXmlFile>

<suiteXmlFile>src/test/resources/suiteC.xml</suiteXmlFile

<suiteXmlFile>target/surefire-reports/testng-failed.xml</suiteXmlFile-->

</suiteXmlFiles>

<properties>

            <property>

                <name>suitethreadpoolsize</name>

                <value>2</value>

            </property>

        </properties>

</configuration>

</plugin>

</plugins>

   </build>

</project>

 

 

testng.xml:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">

<suite name="Suite">

  <test thread-count="5" name="Test">

    <classes>

      <class name="SuiteB.TestC"/>

      <class name="SuiteA.TestA"/>

      <class name="SuiteA.TestB"/>

      <class name="SuiteB.TestD"/>

    </classes>

  </test> <!-- Test -->

</suite> <!-- Suite -->


P
Pravin V. Kumbhare Replied on 14/08/2020

There's something wrong with this xml.


A
Ashish Replied on 15/08/2020

XML has some error


Related Posts