Maven POM.xml

pom1

pom2

Text : 

<project xmlns=”http://maven.apache.org/POM/4.0.0&#8243; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”&gt; <modelVersion>4.0.0</modelVersion>
<groupId>TestConfig</groupId> <artifactId>TestConfig</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging>
<name>TestConfig</name> <url>http://maven.apache.org</url&gt;
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>

<build> <plugins> <!– Compiler plug-in –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <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>2.18.1</version> <configuration> <suiteXmlFiles> <!– TestNG suite XML files –> <suiteXmlFile>testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build>

 

<dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.10</version> <scope>compile</scope> </dependency> </dependencies></project>