11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4- <modelVersion >4.0.0</modelVersion >
5- <groupId >com.baeldung</groupId >
6- <artifactId >testng</artifactId >
7- <version >0.1.0-SNAPSHOT</version >
8- <packaging >jar</packaging >
9- <name >testng</name >
10-
11- <dependencies >
12-
13- <!-- logging -->
14-
15- <dependency >
16- <groupId >org.slf4j</groupId >
17- <artifactId >slf4j-api</artifactId >
18- <version >${org.slf4j.version} </version >
19- </dependency >
20- <dependency >
21- <groupId >ch.qos.logback</groupId >
22- <artifactId >logback-classic</artifactId >
23- <version >${logback.version} </version >
24- </dependency >
25-
26- <!-- test scoped -->
27-
28- <dependency >
29- <groupId >org.testng</groupId >
30- <artifactId >testng</artifactId >
31- <version >${testng.version} </version >
32- <scope >test</scope >
33- </dependency >
34-
35- </dependencies >
36-
37- <build >
38- <finalName >testng</finalName >
39- <resources >
40- <resource >
41- <directory >src/main/resources</directory >
42- <filtering >true</filtering >
43- </resource >
44- </resources >
45- <testResources >
46- <testResource >
47- <directory >src/main/resources</directory >
48- <filtering >true</filtering >
49- </testResource >
50- </testResources >
51-
52- <plugins >
53-
54- <plugin >
55- <groupId >org.apache.maven.plugins</groupId >
56- <artifactId >maven-compiler-plugin</artifactId >
57- <version >${maven-compiler-plugin.version} </version >
58- <configuration >
59- <source >1.8</source >
60- <target >1.8</target >
61- </configuration >
62- </plugin >
63-
64- <plugin >
65- <groupId >org.apache.maven.plugins</groupId >
66- <artifactId >maven-surefire-plugin</artifactId >
67- <version >${maven-surefire-plugin.version} </version >
68- <configuration >
69- <excludes >
70- <exclude >**/*IntegrationTest.java</exclude >
71- <exclude >**/*LongRunningUnitTest.java</exclude >
72- <exclude >**/*ManualTest.java</exclude >
73- </excludes >
74- <suiteXmlFiles >
75- <suiteXmlFile >src\test\resources\parametrized_testng.xml</suiteXmlFile >
76- <suiteXmlFile >src\test\resources\test_group.xml</suiteXmlFile >
77- <suiteXmlFile >src\test\resources\test_setup.xml</suiteXmlFile >
78- <suiteXmlFile >src\test\resources\test_suite.xml</suiteXmlFile >
79- </suiteXmlFiles >
80-
81- <testFailureIgnore >true</testFailureIgnore >
82- </configuration >
83- </plugin >
84-
85- <plugin >
86- <groupId >org.apache.maven.plugins</groupId >
87- <artifactId >maven-dependency-plugin</artifactId >
88- <executions >
89- <execution >
90- <id >copy-dependencies</id >
91- <phase >prepare-package</phase >
92- <goals >
93- <goal >copy-dependencies</goal >
94- </goals >
95- <configuration >
96- <outputDirectory >${project.build.directory} /libs</outputDirectory >
97- </configuration >
98- </execution >
99- </executions >
100- </plugin >
101- </plugins >
102-
103- </build >
104-
105- <properties >
106-
107- <!-- logging -->
108- <org .slf4j.version>1.7.21</org .slf4j.version>
109- <logback .version>1.1.7</logback .version>
110-
111- <!-- testing -->
112- <testng .version>6.10</testng .version>
113-
114- <!-- maven plugins -->
115- <maven-compiler-plugin .version>3.6.0</maven-compiler-plugin .version>
116- <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
117-
118- </properties >
3+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+ <groupId >com.baeldung</groupId >
6+ <artifactId >testng</artifactId >
7+ <version >0.1.0-SNAPSHOT</version >
8+ <packaging >jar</packaging >
9+ <name >testng</name >
10+
11+ <dependencies >
12+
13+ <!-- logging -->
14+
15+ <dependency >
16+ <groupId >org.slf4j</groupId >
17+ <artifactId >slf4j-api</artifactId >
18+ <version >${org.slf4j.version} </version >
19+ </dependency >
20+ <dependency >
21+ <groupId >ch.qos.logback</groupId >
22+ <artifactId >logback-classic</artifactId >
23+ <version >${logback.version} </version >
24+ </dependency >
25+
26+ <!-- test scoped -->
27+
28+ <dependency >
29+ <groupId >org.testng</groupId >
30+ <artifactId >testng</artifactId >
31+ <version >${testng.version} </version >
32+ <scope >test</scope >
33+ </dependency >
34+
35+ </dependencies >
36+
37+ <build >
38+ <finalName >testng</finalName >
39+ <resources >
40+ <resource >
41+ <directory >src/main/resources</directory >
42+ <filtering >true</filtering >
43+ </resource >
44+ </resources >
45+ <testResources >
46+ <testResource >
47+ <directory >src/main/resources</directory >
48+ <filtering >true</filtering >
49+ </testResource >
50+ </testResources >
51+
52+ <plugins >
53+
54+ <plugin >
55+ <groupId >org.apache.maven.plugins</groupId >
56+ <artifactId >maven-compiler-plugin</artifactId >
57+ <version >${maven-compiler-plugin.version} </version >
58+ <configuration >
59+ <source >1.8</source >
60+ <target >1.8</target >
61+ </configuration >
62+ </plugin >
63+
64+ <plugin >
65+ <groupId >org.apache.maven.plugins</groupId >
66+ <artifactId >maven-surefire-plugin</artifactId >
67+ <version >${maven-surefire-plugin.version} </version >
68+ <configuration >
69+ <excludes >
70+ <exclude >**/*IntegrationTest.java</exclude >
71+ <exclude >**/*LongRunningUnitTest.java</exclude >
72+ <exclude >**/*ManualTest.java</exclude >
73+ </excludes >
74+ <suiteXmlFiles >
75+ <suiteXmlFile >src\test\resources\parametrized_testng.xml</suiteXmlFile >
76+ <suiteXmlFile >src\test\resources\test_group.xml</suiteXmlFile >
77+ <suiteXmlFile >src\test\resources\test_setup.xml</suiteXmlFile >
78+ <suiteXmlFile >src\test\resources\test_suite.xml</suiteXmlFile >
79+ </suiteXmlFiles >
80+
81+ <testFailureIgnore >true</testFailureIgnore >
82+ </configuration >
83+ </plugin >
84+
85+ <plugin >
86+ <groupId >org.apache.maven.plugins</groupId >
87+ <artifactId >maven-dependency-plugin</artifactId >
88+ <executions >
89+ <execution >
90+ <id >copy-dependencies</id >
91+ <phase >prepare-package</phase >
92+ <goals >
93+ <goal >copy-dependencies</goal >
94+ </goals >
95+ <configuration >
96+ <outputDirectory >${project.build.directory} /libs</outputDirectory >
97+ </configuration >
98+ </execution >
99+ </executions >
100+ </plugin >
101+ </plugins >
102+
103+ </build >
104+
105+ <properties >
106+
107+ <!-- logging -->
108+ <org .slf4j.version>1.7.21</org .slf4j.version>
109+ <logback .version>1.1.7</logback .version>
110+
111+ <!-- testing -->
112+ <testng .version>6.10</testng .version>
113+
114+ <!-- maven plugins -->
115+ <maven-compiler-plugin .version>3.6.0</maven-compiler-plugin .version>
116+ <maven-surefire-plugin .version>2.19.1</maven-surefire-plugin .version>
117+
118+ </properties >
119119
120120
121121</project >
0 commit comments