@@ -74,26 +74,6 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
7474 </properties >
7575 <build >
7676 <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 >
9777 <plugin >
9878 <groupId >org.apache.maven.plugins</groupId >
9979 <artifactId >maven-resources-plugin</artifactId >
@@ -145,26 +125,6 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
145125 </execution >
146126 </executions >
147127 </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 >
168128 <plugin >
169129 <artifactId >maven-jar-plugin</artifactId >
170130 <version >3.2.0</version >
@@ -225,13 +185,15 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
225185 </configuration >
226186 <executions >
227187 <execution >
188+ <id >javadoc-package</id >
189+ <phase >pre-package</phase >
228190 <goals >
229191 <goal >jar</goal >
230192 <goal >javadoc</goal >
231193 </goals >
232194 </execution >
233195 <execution >
234- <id >site</id >
196+ <id >javadoc- site</id >
235197 <phase >pre-site</phase >
236198 <goals >
237199 <goal >javadoc</goal >
@@ -243,7 +205,7 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
243205 <artifactId >maven-release-plugin</artifactId >
244206 <version >3.0.0-M4</version >
245207 <configuration >
246- <goals >package site-deploy assembly:single deploy</goals >
208+ <goals >package site-deploy deploy</goals >
247209 </configuration >
248210 </plugin >
249211 <plugin >
@@ -282,7 +244,7 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
282244 <plugin >
283245 <groupId >org.apache.felix</groupId >
284246 <artifactId >maven-bundle-plugin</artifactId >
285- <version >5.1.1 </version >
247+ <version >5.1.3 </version >
286248 <extensions >true</extensions >
287249 <configuration >
288250 <instructions >
@@ -382,7 +344,7 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
382344 </reporting >
383345 <dependencies >
384346 <dependency >
385- <groupId >jakarta.mail </groupId >
347+ <groupId >jakarta.mail</groupId >
386348 <artifactId >jakarta.mail-api</artifactId >
387349 <version >2.0.1</version >
388350 <optional >true</optional >
@@ -424,4 +386,129 @@ Building of NTEventLogappender.dll is disabled. Use an older log4j to get it.
424386 <url >scp://localhost/${user.dir} /target/site-deploy</url >
425387 </site >
426388 </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 >
427514</project >
0 commit comments