Skip to content

Commit 6c7fddd

Browse files
authored
Update pom.xml for dependencies and plugins
Updated Maven POM file to replace deprecated Surefire version and add BrowserStack SDK version.
1 parent 6f44000 commit 6c7fddd

1 file changed

Lines changed: 22 additions & 59 deletions

File tree

pom.xml

Lines changed: 22 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
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">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<groupId>com.browserstack</groupId>
@@ -15,9 +17,8 @@
1517
<maven.compiler.source>1.8</maven.compiler.source>
1618
<maven.compiler.target>1.8</maven.compiler.target>
1719
<testng.version>7.4.0</testng.version>
18-
<surefire.version>2.19.1</surefire.version>
1920
<selenium.version>4.1.4</selenium.version>
20-
<json-simple.version>1.1.1</json-simple.version>
21+
<browserstack.sdk.version>1.53.3</browserstack.sdk.version>
2122
<config.file>config/login-test.testng.xml</config.file>
2223
</properties>
2324

@@ -26,6 +27,7 @@
2627
<groupId>org.testng</groupId>
2728
<artifactId>testng</artifactId>
2829
<version>${testng.version}</version>
30+
<scope>test</scope>
2931
</dependency>
3032
<dependency>
3133
<groupId>org.seleniumhq.selenium</groupId>
@@ -35,15 +37,17 @@
3537
<dependency>
3638
<groupId>com.browserstack</groupId>
3739
<artifactId>browserstack-java-sdk</artifactId>
38-
<version>LATEST</version>
40+
<version>${browserstack.sdk.version}</version>
3941
<scope>compile</scope>
4042
</dependency>
4143
</dependencies>
4244

4345
<build>
4446
<plugins>
4547
<plugin>
48+
<groupId>org.apache.maven.plugins</groupId>
4649
<artifactId>maven-dependency-plugin</artifactId>
50+
<version>3.1.0</version>
4751
<executions>
4852
<execution>
4953
<id>getClasspathFilenames</id>
@@ -53,25 +57,26 @@
5357
</execution>
5458
</executions>
5559
</plugin>
60+
5661
<plugin>
5762
<groupId>org.apache.maven.plugins</groupId>
58-
<artifactId>maven-surefire-plugin</artifactId>
59-
<version>${surefire.version}</version>
63+
<artifactId>maven-compiler-plugin</artifactId>
64+
<version>3.8.1</version>
6065
<configuration>
61-
<suiteXmlFiles>
62-
<suiteXmlFile>${config.file}</suiteXmlFile>
63-
</suiteXmlFiles>
64-
<argLine>
65-
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
66-
</argLine>
66+
<source>1.8</source>
67+
<target>1.8</target>
6768
</configuration>
6869
</plugin>
70+
6971
<plugin>
7072
<groupId>org.apache.maven.plugins</groupId>
71-
<artifactId>maven-compiler-plugin</artifactId>
73+
<artifactId>maven-surefire-plugin</artifactId>
74+
<version>2.22.2</version>
7275
<configuration>
73-
<source>${maven.compiler.source}</source>
74-
<target>${maven.compiler.target}</target>
76+
<suiteXmlFiles>
77+
<suiteXmlFile>${config.file}</suiteXmlFile>
78+
</suiteXmlFiles>
79+
<argLine>-javaagent:"${com.browserstack:browserstack-java-sdk:jar}"</argLine>
7580
</configuration>
7681
</plugin>
7782
</plugins>
@@ -89,53 +94,11 @@
8994
<suiteXmlFiles>
9095
<suiteXmlFile>config/loan-test.testng.xml</suiteXmlFile>
9196
</suiteXmlFiles>
92-
<argLine>
93-
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
94-
</argLine>
95-
</configuration>
96-
</plugin>
97-
</plugins>
98-
</build>
99-
</profile>
100-
101-
<profile>
102-
<id>login-test</id>
103-
<build>
104-
<plugins>
105-
<plugin>
106-
<groupId>org.apache.maven.plugins</groupId>
107-
<artifactId>maven-surefire-plugin</artifactId>
108-
<configuration>
109-
<suiteXmlFiles>
110-
<suiteXmlFile>config/login-test.testng.xml</suiteXmlFile>
111-
</suiteXmlFiles>
112-
<argLine>
113-
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
114-
</argLine>
115-
</configuration>
116-
</plugin>
117-
</plugins>
118-
</build>
119-
</profile>
120-
121-
<profile>
122-
<id>kyc-test</id>
123-
<build>
124-
<plugins>
125-
<plugin>
126-
<groupId>org.apache.maven.plugins</groupId>
127-
<artifactId>maven-surefire-plugin</artifactId>
128-
<configuration>
129-
<suiteXmlFiles>
130-
<suiteXmlFile>config/kyc-test.testng.xml</suiteXmlFile>
131-
</suiteXmlFiles>
132-
<argLine>
133-
-javaagent:${com.browserstack:browserstack-java-sdk:jar}
134-
</argLine>
97+
<argLine>-javaagent:"${com.browserstack:browserstack-java-sdk:jar}"</argLine>
13598
</configuration>
13699
</plugin>
137100
</plugins>
138101
</build>
139102
</profile>
140-
</profiles>
103+
</profiles>
141104
</project>

0 commit comments

Comments
 (0)