forked from junit-team/junit4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
576 lines (563 loc) · 24 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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
<?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>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13-SNAPSHOT</version>
<name>JUnit</name>
<description>JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.</description>
<url>http://junit.org</url>
<inceptionYear>2002</inceptionYear>
<organization>
<name>JUnit</name>
<url>http://www.junit.org</url>
</organization>
<licenses>
<license>
<name>Eclipse Public License 1.0</name>
<url>http://www.eclipse.org/legal/epl-v10.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>dsaff</id>
<name>David Saff</name>
<email>[email protected]</email>
</developer>
<developer>
<id>kcooney</id>
<name>Kevin Cooney</name>
<email>[email protected]</email>
</developer>
<developer>
<id>stefanbirkner</id>
<name>Stefan Birkner</name>
<email>[email protected]</email>
</developer>
<developer>
<id>marcphilipp</id>
<name>Marc Philipp</name>
<email>[email protected]</email>
</developer>
</developers>
<contributors>
<contributor>
<name>JUnit contributors</name>
<organization>JUnit</organization>
<email>[email protected]</email>
<url>https://github.com/junit-team/junit4/graphs/contributors</url>
<roles>
<role>developers</role>
</roles>
</contributor>
</contributors>
<mailingLists>
<mailingList>
<name>JUnit Mailing List</name>
<post>[email protected]</post>
<archive>https://groups.yahoo.com/neo/groups/junit/info</archive>
</mailingList>
</mailingLists>
<prerequisites>
<maven>3.0.4</maven>
</prerequisites>
<scm>
<connection>scm:git:git://github.com/junit-team/junit4.git</connection>
<developerConnection>scm:git:[email protected]:junit-team/junit4.git</developerConnection>
<url>http://github.com/junit-team/junit4/tree/master</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/junit-team/junit4/issues</url>
</issueManagement>
<ciManagement>
<system>jenkins</system>
<url>https://junit.ci.cloudbees.com/</url>
</ciManagement>
<distributionManagement>
<downloadUrl>https://github.com/junit-team/junit4/wiki/Download-and-Install</downloadUrl>
<snapshotRepository>
<id>junit-snapshot-repo</id>
<name>Nexus Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>junit-releases-repo</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>junit.github.io</id>
<url>gitsite:[email protected]/junit-team/junit4.git</url>
</site>
</distributionManagement>
<properties>
<jdkVersion>1.5</jdkVersion>
<surefireVersion>2.19.1</surefireVersion>
<hamcrestVersion>1.3</hamcrestVersion>
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
<arguments />
<gpg.keyname>67893CC4</gpg.keyname>
</properties>
<dependencies>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrestVersion}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>${hamcrestVersion}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>LICENSE-junit.txt</include>
</includes>
</resource>
</resources>
<plugins>
<!--
Both "org.apache" and "org.codehaus" are default providers of MOJO plugins
which are especially dedicated to Maven projects.
The MOJO stands for "Maven plain Old Java Object".
Each mojo is an executable goal in Maven, and a plugin is a distribution of
one or more related mojos.
For more information see http://maven.apache.org/plugin-developers/index.html
The following plugins are ordered according the Maven build lifecycle.
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
-->
<plugin>
<!--
Checks that the version of user's maven installation is 3.0.4,
the JDK is 1.5+, no non-standard repositories are specified in
the project, requires only release versions of dependencies of other artifacts.
-->
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>enforce-versions</id>
<phase>initialize</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<fail>true</fail>
<rules>
<requireMavenVersion>
<!-- Some plugin features require a recent Maven runtime to work properly -->
<message>Current version of Maven ${maven.version} required to build the project
should be ${project.prerequisites.maven}, or higher!
</message>
<version>[${project.prerequisites.maven},)</version>
</requireMavenVersion>
<requireJavaVersion>
<message>Current JDK version ${java.version} should be ${jdkVersion}, or higher!
</message>
<version>${jdkVersion}</version>
</requireJavaVersion>
<requireNoRepositories>
<message>Best Practice is to never define repositories in pom.xml (use a repository
manager instead).
</message>
</requireNoRepositories>
<requireReleaseDeps>
<message>No Snapshots Dependencies Allowed!</message>
</requireReleaseDeps>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!--
Updates Version#id().
-->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<ignoreMissingFile>false</ignoreMissingFile>
<file>${project.build.sourceDirectory}/junit/runner/Version.java.template</file>
<outputFile>${project.build.sourceDirectory}/junit/runner/Version.java</outputFile>
<regex>false</regex>
<token>@version@</token>
<value>${project.version}</value>
</configuration>
</plugin>
<plugin><!-- Using jdk 1.5.0_22, package-info.java files are compiled correctly. -->
<!--
java compiler plugin forked in extra process
-->
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<source>${jdkVersion}</source>
<target>${jdkVersion}</target>
<testSource>${jdkVersion}</testSource>
<testTarget>${jdkVersion}</testTarget>
<compilerVersion>1.5</compilerVersion>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<debug>true</debug>
<fork>true</fork>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
</compilerArgs>
<maxmem>128m</maxmem>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.14</version>
<executions>
<execution>
<id>signature-check</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java15</artifactId>
<version>1.0</version>
</signature>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!--
A plugin which uses the JUnit framework in order to start
our junit suite "AllTests" after the sources are compiled.
-->
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefireVersion}</version>
<configuration>
<test>org/junit/tests/AllTests.java</test>
<useSystemClassLoader>true</useSystemClassLoader>
<enableAssertions>false</enableAssertions>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>${surefireVersion}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<!--
This plugin can package the main artifact's sources (src/main/java)
in to jar archive. See target/junit-*-sources.jar.
-->
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<!--
This plugin can generate Javadoc by a forked
process and then package the Javadoc
in jar archive target/junit-*-javadoc.jar.
-->
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<configuration>
<stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>
<show>protected</show>
<author>false</author>
<version>false</version>
<detectLinks>false</detectLinks>
<linksource>true</linksource>
<keywords>true</keywords>
<use>true</use>
<windowtitle>JUnit API</windowtitle>
<encoding>UTF-8</encoding>
<locale>en</locale>
<javadocVersion>${jdkVersion}</javadocVersion>
<javaApiLinks>
<property>
<name>api_${jdkVersion}</name>
<value>http://docs.oracle.com/javase/${jdkVersion}.0/docs/api/</value>
</property>
</javaApiLinks>
<excludePackageNames>junit.*,*.internal.*</excludePackageNames>
<verbose>true</verbose>
<minmemory>32m</minmemory>
<maxmemory>128m</maxmemory>
<failOnError>true</failOnError>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<arguments>-Pgenerate-docs,junit-release ${arguments}</arguments>
<tagNameFormat>r@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.4</version>
<dependencies>
<dependency>
<groupId>com.github.stephenc.wagon</groupId>
<artifactId>wagon-gitsite</artifactId>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.5</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.6.1</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.8</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
<!-- waiting for MPIR-267 -->
</configuration>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>dependency-info</report>
<report>modules</report>
<report>license</report>
<report>project-team</report>
<report>scm</report>
<report>issue-tracking</report>
<report>mailing-list</report>
<report>dependency-management</report>
<report>dependencies</report>
<report>dependency-convergence</report>
<report>cim</report>
<report>distribution-management</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
<configuration>
<destDir>javadoc/latest</destDir>
<stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>
<show>protected</show>
<author>false</author>
<version>false</version>
<detectLinks>false</detectLinks>
<linksource>true</linksource>
<keywords>true</keywords>
<use>true</use>
<windowtitle>JUnit API</windowtitle>
<encoding>UTF-8</encoding>
<locale>en</locale>
<javadocVersion>${jdkVersion}</javadocVersion>
<javaApiLinks>
<property>
<name>api_${jdkVersion}</name>
<value>http://docs.oracle.com/javase/${jdkVersion}.0/docs/api/</value>
</property>
</javaApiLinks>
<excludePackageNames>junit.*,*.internal.*</excludePackageNames>
<verbose>true</verbose>
<minmemory>32m</minmemory>
<maxmemory>128m</maxmemory>
<failOnError>true</failOnError>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>junit-release</id>
<!--
Signs all artifacts before deploying to Maven Central.
-->
<build>
<plugins>
<plugin>
<!--
The goal is to sign all artifacts so that the user may verify them before downloading.
The automatic build system may reuire your key ID, and passphrase specified using system properties:
-Dgpg.passphrase="<passphrase>" -Dgpg.keyname="<your key ID>"
In order to create the key pair, use the command "gpg ––gen-key".
(–– stands for double dash)
-->
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>gpg-sign</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>generate-docs</id>
<!--
Generate the documentation artifacts.
Note: this profile is also required to be active for release
builds due to the packaging requirements of the Central repo
-->
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>prepare-package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadoc</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>restrict-doclint</id>
<!-- doclint is only supported by JDK 8 -->
<activation>
<jdk>[1.8,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
<arg>-Xdoclint:accessibility,reference,syntax</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:accessibility -Xdoclint:reference</additionalparam>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:accessibility -Xdoclint:reference</additionalparam>
</configuration>
</plugin>
</plugins>
</reporting>
</profile>
<profile>
<id>fast-tests</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<parallel>classes</parallel>
<threadCountClasses>2</threadCountClasses>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>