@@ -74,26 +74,6 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
74
74
</properties >
75
75
<build >
76
76
<plugins >
77
- <plugin >
78
- <groupId >org.apache.maven.plugins</groupId >
79
- <artifactId >maven-toolchains-plugin</artifactId >
80
- <version >1.1</version >
81
- <executions >
82
- <execution >
83
- <goals >
84
- <goal >toolchain</goal >
85
- </goals >
86
- </execution >
87
- </executions >
88
- <configuration >
89
- <toolchains >
90
- <jdk >
91
- <version >1.6</version >
92
- <vendor >oracle</vendor >
93
- </jdk >
94
- </toolchains >
95
- </configuration >
96
- </plugin >
97
77
<plugin >
98
78
<groupId >org.apache.maven.plugins</groupId >
99
79
<artifactId >maven-resources-plugin</artifactId >
@@ -145,26 +125,6 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
145
125
</execution >
146
126
</executions >
147
127
</plugin >
148
- <plugin >
149
- <artifactId >maven-surefire-plugin</artifactId >
150
- <version >2.22.2</version >
151
- <configuration >
152
- <workingDirectory >tests</workingDirectory >
153
- <reportFormat >plain</reportFormat >
154
- <forkMode >pertest</forkMode ><!-- deprecated, but tests fail when changing the setting -->
155
- <skip >false</skip >
156
- <argLine >-Djava.library.path=${project.basedir} </argLine >
157
- </configuration >
158
- </plugin >
159
- <plugin >
160
- <artifactId >maven-compiler-plugin</artifactId >
161
- <version >3.8.1</version >
162
- <configuration >
163
- <source >1.4</source >
164
- <target >1.4</target >
165
- <encoding >UTF-8</encoding >
166
- </configuration >
167
- </plugin >
168
128
<plugin >
169
129
<artifactId >maven-jar-plugin</artifactId >
170
130
<version >3.2.0</version >
@@ -225,13 +185,15 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
225
185
</configuration >
226
186
<executions >
227
187
<execution >
188
+ <id >javadoc-package</id >
189
+ <phase >pre-package</phase >
228
190
<goals >
229
191
<goal >jar</goal >
230
192
<goal >javadoc</goal >
231
193
</goals >
232
194
</execution >
233
195
<execution >
234
- <id >site</id >
196
+ <id >javadoc- site</id >
235
197
<phase >pre-site</phase >
236
198
<goals >
237
199
<goal >javadoc</goal >
@@ -243,7 +205,7 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
243
205
<artifactId >maven-release-plugin</artifactId >
244
206
<version >3.0.0-M4</version >
245
207
<configuration >
246
- <goals >package site-deploy assembly:single deploy</goals >
208
+ <goals >package site-deploy deploy</goals >
247
209
</configuration >
248
210
</plugin >
249
211
<plugin >
@@ -282,7 +244,7 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
282
244
<plugin >
283
245
<groupId >org.apache.felix</groupId >
284
246
<artifactId >maven-bundle-plugin</artifactId >
285
- <version >5.1.1 </version >
247
+ <version >5.1.3 </version >
286
248
<extensions >true</extensions >
287
249
<configuration >
288
250
<instructions >
@@ -382,7 +344,7 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
382
344
</reporting >
383
345
<dependencies >
384
346
<dependency >
385
- <groupId >jakarta.mail </groupId >
347
+ <groupId >jakarta.mail</groupId >
386
348
<artifactId >jakarta.mail-api</artifactId >
387
349
<version >2.0.1</version >
388
350
<optional >true</optional >
@@ -424,4 +386,129 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
424
386
<url >scp://localhost/${user.dir} /target/site-deploy</url >
425
387
</site >
426
388
</distributionManagement >
389
+ <profiles >
390
+ <profile >
391
+ <id >no-toolchain</id >
392
+ <build >
393
+ <plugins >
394
+ <plugin >
395
+ <artifactId >maven-compiler-plugin</artifactId >
396
+ <version >3.8.1</version >
397
+ <configuration >
398
+ <source >7</source >
399
+ <target >7</target >
400
+ <encoding >UTF-8</encoding >
401
+ </configuration >
402
+ </plugin >
403
+ <plugin >
404
+ <artifactId >maven-surefire-plugin</artifactId >
405
+ <version >2.22.2</version >
406
+ <configuration >
407
+ <workingDirectory >tests</workingDirectory >
408
+ <reportFormat >plain</reportFormat >
409
+ <forkMode >pertest</forkMode ><!-- deprecated, but tests fail when changing the setting -->
410
+ <skip >false</skip >
411
+ <argLine >-Djava.library.path=${project.basedir} </argLine >
412
+ <excludes >
413
+ <exclude >**/DRFATestCase.java</exclude >
414
+ <exclude >**/EnhancedPatternLayoutTestCase.java</exclude >
415
+ <exclude >**/MinimumTestCase.java</exclude >
416
+ <exclude >**/PatternLayoutTestCase.java</exclude >
417
+ <exclude >**/TestLogMF.java</exclude >
418
+ <exclude >**/XLoggerTestCase.java</exclude >
419
+ <exclude >**/ErrorHandlerTestCase.java</exclude >
420
+ <exclude >**/DOMTestCase.java</exclude >
421
+ <exclude >**/XMLLayoutTestCase.java</exclude >
422
+ </excludes >
423
+ </configuration >
424
+ </plugin >
425
+ <plugin >
426
+ <groupId >com.soebes.maven.plugins</groupId >
427
+ <artifactId >echo-maven-plugin</artifactId >
428
+ <version >0.4.0</version >
429
+ <executions >
430
+ <execution >
431
+ <id >echo-toolchain-warning</id >
432
+ <phase >validate</phase >
433
+ <goals >
434
+ <goal >echo</goal >
435
+ </goals >
436
+ <configuration >
437
+ <echos >
438
+ <echo >WARNING:</echo >
439
+ <echo >WARNING:</echo >
440
+ <echo >WARNING:</echo >
441
+ <echo >WARNING: =========================================================</echo >
442
+ <echo >WARNING: You are using a modern JDK without the toolchain profile.</echo >
443
+ <echo >WARNING: Resulting jar files will not work with old JDKs! </echo >
444
+ <echo >WARNING: =========================================================</echo >
445
+ <echo >WARNING:</echo >
446
+ <echo >WARNING:</echo >
447
+ <echo >WARNING:</echo >
448
+ </echos >
449
+ </configuration >
450
+ </execution >
451
+ </executions >
452
+ </plugin >
453
+ <plugin >
454
+ <artifactId >maven-javadoc-plugin</artifactId >
455
+ <configuration >
456
+ <failOnError >false</failOnError >
457
+ <failOnWarnings >false</failOnWarnings >
458
+ </configuration >
459
+ </plugin >
460
+ </plugins >
461
+ </build >
462
+ </profile >
463
+ <profile >
464
+ <id >toolchain</id >
465
+ <activation >
466
+ <activeByDefault >true</activeByDefault >
467
+ </activation >
468
+ <build >
469
+ <plugins >
470
+ <plugin >
471
+ <groupId >org.apache.maven.plugins</groupId >
472
+ <artifactId >maven-toolchains-plugin</artifactId >
473
+ <version >1.1</version >
474
+ <executions >
475
+ <execution >
476
+ <goals >
477
+ <goal >toolchain</goal >
478
+ </goals >
479
+ </execution >
480
+ </executions >
481
+ <configuration >
482
+ <toolchains >
483
+ <jdk >
484
+ <version >1.6</version >
485
+ <vendor >oracle</vendor >
486
+ </jdk >
487
+ </toolchains >
488
+ </configuration >
489
+ </plugin >
490
+ <plugin >
491
+ <artifactId >maven-compiler-plugin</artifactId >
492
+ <version >3.8.1</version >
493
+ <configuration >
494
+ <source >1.4</source >
495
+ <target >1.4</target >
496
+ <encoding >UTF-8</encoding >
497
+ </configuration >
498
+ </plugin >
499
+ <plugin >
500
+ <artifactId >maven-surefire-plugin</artifactId >
501
+ <version >2.22.2</version >
502
+ <configuration >
503
+ <workingDirectory >tests</workingDirectory >
504
+ <reportFormat >plain</reportFormat >
505
+ <forkMode >pertest</forkMode ><!-- deprecated, but tests fail when changing the setting -->
506
+ <skip >false</skip >
507
+ <argLine >-Djava.library.path=${project.basedir} </argLine >
508
+ </configuration >
509
+ </plugin >
510
+ </plugins >
511
+ </build >
512
+ </profile >
513
+ </profiles >
427
514
</project >
0 commit comments