-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
398 lines (370 loc) · 17.7 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.whiteorganization</groupId>
<artifactId>white-selenium-framework</artifactId>
<version>2.2.1</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>A Selenium Framework that will help to execute tests and custom scenarios faster and reduce the effort
to access many sections Selenium related.
</description>
<url>https://github.com/WhiteOrganization/White_SeleniumFramework</url>
<properties>
<!--region Project Configurations FILL THESE-->
<!-- WARNING: add release scope if 1.9 and older versions are used at build/plugins/plugin/[maven-compiler-plugin]/configuration-->
<java.version>16</java.version>
<selenium.version>4.8.1</selenium.version>
<organization>WhiteOrganization</organization>
<repository.name>White_SeleniumFramework</repository.name>
<!--endregion-->
<!-- region automated configurations -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<!-- endregion automated configurations -->
</properties>
<licenses>
<license>
<name>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License</name>
<url>https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode</url>
</license>
</licenses>
<developers>
<developer>
<name>Obed Vazquez</name>
<email>[email protected]</email>
<organization>${organization}</organization>
<organizationUrl>https://github.com/${organization}/</organizationUrl>
</developer>
</developers>
<!-- region Maven releases support -->
<!-- You also require Maven settings.xml configuration to authenticate when performing a `mvn release:prepare` -->
<scm>
<connection>scm:git:https://github.com/${organization}/${repository.name}.git</connection>
<developerConnection>scm:git:https://github.com/${organization}/${repository.name}.git</developerConnection>
<url>https://github.com/${organization}/${repository.name}/tree/main</url>
<tag>white-selenium-framework-0.2.5</tag>
</scm>
<!-- endregion Maven releases support -->
<dependencies>
<!-- region Selenium -->
<!-- region Pure Selenium -->
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
<!-- region HtmlUnitDriver -->
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/htmlunit-driver -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>htmlunit-driver</artifactId>
<version>${selenium.version}</version>
<scope>provided</scope>
</dependency>
<!-- endregion -->
<!-- region ChromeDriver -->
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-chrome-driver -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>${selenium.version}</version>
<scope>provided</scope>
</dependency>
<!-- endregion ChromeDriver -->
<!-- endregion Pure Selenium -->
<!-- region bonigarcia WebDriverManager -->
<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.3.2</version>
<scope>provided</scope>
</dependency>
<!-- endregion -->
<!-- region Selenium-Jupiter -->
<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/selenium-jupiter -->
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>selenium-jupiter</artifactId>
<version>4.3.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.2</version>
<scope>provided</scope>
</dependency>
<!-- endregion Selenium-Jupiter -->
<!-- endregion Selenium -->
<!-- region Logs -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.26</version>
<scope>provided</scope>
<type>jar</type>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
<!-- Projects can implement Spring to make use of this implementation
or implement this in the actual project itself -->
<!-- <dependency>-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-simple</artifactId>-->
<!-- <version>2.0.5</version>-->
<!-- </dependency>-->
<!-- endregion -->
<!-- region UnitTesting -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency><!-- https://mvnrepository.com/artifact/org.assertj/assertj-core -->
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.24.2</version>
<scope>test</scope>
</dependency>
<!-- endregion testing -->
</dependencies>
<profiles>
<!-- region GitHub Profile -->
<!-- Here used only to exclude Failing tests on production -->
<profile>
<id>github</id>
<activation>
<property>
<name>target</name>
<value>github</value>
</property>
</activation>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Maven ${organization} ${repository.name}. Repository</name>
<url>https://maven.pkg.github.com/whiteorganization/white_seleniumframework</url>
</repository>
</distributionManagement>
<build>
<plugins>
<!-- region Maven is able to run JUnit5 Tests -->
<!-- This requires junit-jupiter-engine [in junit-jupiter] dependency! -->
<!-- This will run everything that Starts or ends with Test[(Case)|s]{0-1}. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<configuration>
<excludes>
<exclude>org.white_sdev.white_seleniumframework.framework.prodexcluded.**</exclude>
</excludes>
</configuration>
</plugin>
<!-- endregion -->
</plugins>
</build>
</profile>
<!-- endregion GitHub Profile -->
<!-- region Sonatype Maven Central Profile -->
<profile>
<id>maven-central</id>
<activation>
<property>
<name>target</name>
<value>sonatype</value>
</property>
</activation>
<distributionManagement>
<!-- region Sonatype -->
<!-- You need to configure credentials for the organization ossrh in your maven settings to deploy to the repo
And add Sonatype servers with your credentials with access to the repository.
Steps: https://central.sonatype.org/publish/publish-maven/#distribution-management-and-authentication -->
<!-- Template to add to settings.xml:
<servers>
<server>
<id>ossrh</id>
<username>{your-jira-id}</username>
<password>{your-jira-pwd}</password>
</server>
</servers>
<mirrors>
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
</mirrors>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>{Your_gpg_key_passphrase}</gpg.passphrase>
</properties>
</profile>
Template to add to settings.xml -->
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<!-- endregion Sonatype -->
</distributionManagement>
<build>
<plugins>
<!-- region Sonatype Plugins -->
<!-- region Maven Release Plugin -->
<!-- we can now use `mvn release:clean release:prepare -D target=sonatype`
followed by `mvn release:perform -D target=sonatype` -->
<!-- https://central.sonatype.org/publish/publish-maven/#performing-a-release-deployment-with-the-maven-release-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
<!-- endregion Maven Release Plugin -->
<!-- region Sonatype Nexus Config -->
<!-- https://central.sonatype.org/publish/publish-maven/#distribution-management-and-authentication -->
<!-- https://central.sonatype.org/publish/publish-maven/#nexus-staging-maven-plugin-for-deployment-and-release -->
<!-- for SNAPSHOT's use `mvn clean deploy -D target=sonatype` -->
<!-- for Releases: use `mvn versions:set -DnewVersion=1.x.x -D target=sonatype`
followed by `mvn clean deploy -D target=sonatype` -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<!-- Versions: https://search.maven.org/artifact/org.sonatype.plugins/nexus-staging-maven-plugin -->
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<!-- endregion Sonatype Nexus Config -->
<!-- region Sonatype SRC+Javadocs plugin -->
<!-- https://central.sonatype.org/publish/publish-maven/#javadoc-and-sources-attachments
The sources and Javadocs will be included in the deployment -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalparam>-Xdoclint:all -Xdoclint:none</additionalparam>
<additionalJOptions>
<additionalJOption>-Xdoclint:all</additionalJOption>
<additionalJOption>-Xdoclint:-missing</additionalJOption>
</additionalJOptions>
</configuration>
</plugin>
<!-- endregion Sonatype SRC+Javadocs plugin -->
<!-- region GPG Signed -->
<!-- relies on the gpg command being installed and the GPG credentials in settings.xml
https://central.sonatype.org/publish/publish-maven/#gpg-signed-components -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- endregion GPG Signed -->
<!-- endregion Sonatype Plugins -->
</plugins>
</build>
</profile>
<!-- endregion Sonatype Maven Central Profile -->
</profiles>
<build>
<plugins>
<!-- region Established the java version defined in the properties' section for every scope (compatible with newer java versions) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<!-- WARNING: add release scope for 1.9 and older versions -->
<!-- <release>${java.version}</release>-->
</configuration>
</plugin>
<!-- endregion -->
<!-- region Maven is able to run JUnit5 Tests -->
<!-- This requires junit-jupiter-engine [in junit-jupiter] dependency! -->
<!-- This will run everything that Starts or ends with Test[(Case)|s]{0-1}. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<!-- endregion -->
<!-- region Maven releases support -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M7</version>
</plugin>
<!-- endregion Maven releases support -->
</plugins>
</build>
</project>