|
27 | 27 | <maven.compiler.source>17</maven.compiler.source> |
28 | 28 | <maven.compiler.target>17</maven.compiler.target> |
29 | 29 |
|
| 30 | + <surefire.argLine.modules> |
| 31 | + --add-modules org.slf4j |
| 32 | + --add-reads org.htmlunit=org.apache.logging.log4j |
| 33 | + --add-reads org.htmlunit=org.apache.logging.log4j.core |
| 34 | + --add-opens org.htmlunit/org.htmlunit=ALL-UNNAMED |
| 35 | + --add-opens org.htmlunit/org.htmlunit.junit=ALL-UNNAMED |
| 36 | + </surefire.argLine.modules> |
| 37 | + |
30 | 38 | <maven.version.ignore>(?i).*-(alpha|beta|m|rc)([\.-]?\d+)?</maven.version.ignore> |
31 | 39 |
|
32 | 40 | <htmlunitcsp.version>5.0.0-SNAPSHOT</htmlunitcsp.version> |
|
81 | 89 | <source-plugin.version>3.4.0</source-plugin.version> |
82 | 90 | <javadoc-plugin.version>3.12.0</javadoc-plugin.version> |
83 | 91 | <surefire-plugin.version>3.5.4</surefire-plugin.version> |
| 92 | + <site-plugin.version>3.21.0</site-plugin.version> |
84 | 93 | <jacoco-plugin.version>0.8.14</jacoco-plugin.version> |
85 | 94 | <cyclonedx-plugin.version>2.9.1</cyclonedx-plugin.version> |
86 | 95 | </properties> |
|
185 | 194 | <plugin> |
186 | 195 | <groupId>org.apache.maven.plugins</groupId> |
187 | 196 | <artifactId>maven-site-plugin</artifactId> |
188 | | - <version>3.12.0</version> |
| 197 | + <version>${site-plugin.version}</version> |
189 | 198 | </plugin> |
190 | 199 | <plugin> |
191 | 200 | <groupId>org.apache.maven.plugins</groupId> |
|
226 | 235 | <artifactId>maven-surefire-plugin</artifactId> |
227 | 236 | <version>${surefire-plugin.version}</version> |
228 | 237 | <configuration> |
229 | | - <argLine> |
230 | | - --add-modules org.slf4j |
231 | | - --add-reads org.htmlunit=org.apache.logging.log4j |
232 | | - --add-reads org.htmlunit=org.apache.logging.log4j.core |
233 | | - --add-opens org.htmlunit/org.htmlunit=ALL-UNNAMED |
234 | | - --add-opens org.htmlunit/org.htmlunit.junit=ALL-UNNAMED |
235 | | - </argLine> |
| 238 | + <argLine>${surefire.argLine.modules}</argLine> |
236 | 239 | </configuration> |
237 | 240 | </plugin> |
238 | 241 | <plugin> |
|
392 | 395 | <exclude>**/huge/*.java</exclude> |
393 | 396 | <exclude>**/encoding/*.java</exclude> |
394 | 397 | </excludes> |
395 | | - <argLine>-Xms128m -Xmx1g -Dsun.reflect.noInflation=true</argLine> |
| 398 | + <argLine>${surefire.argLine.modules} -Xms128m -Xmx1g -Dsun.reflect.noInflation=true</argLine> |
396 | 399 | <systemPropertyVariables> |
397 | 400 | <htmlunit.maven>maven</htmlunit.maven> |
398 | 401 | </systemPropertyVariables> |
|
453 | 456 | <excludes> |
454 | 457 | <exclude>**/libraries/jquery/JQuery3x3x1Test.java</exclude> |
455 | 458 | </excludes> |
456 | | - <argLine>-Xms128m -Xmx512m</argLine> |
| 459 | + <argLine>${surefire.argLine.modules} -Xms128m -Xmx512m</argLine> |
457 | 460 | <systemPropertyVariables> |
458 | 461 | <htmlunit.maven>maven</htmlunit.maven> |
459 | 462 | </systemPropertyVariables> |
|
481 | 484 | <includes> |
482 | 485 | <include>**/libraries/JQuery3x3x1Test.java</include> |
483 | 486 | </includes> |
484 | | - <argLine>-Xms128m -Xmx512m</argLine> |
| 487 | + <argLine>${surefire.argLine.modules} -Xms128m -Xmx512m</argLine> |
485 | 488 | <systemPropertyVariables> |
486 | 489 | <htmlunit.maven>maven</htmlunit.maven> |
487 | 490 | </systemPropertyVariables> |
|
511 | 514 | <include>**/huge/ElementClosesElementTest.java</include> |
512 | 515 | <include>**/huge/ElementClosesElement2Test.java</include> |
513 | 516 | </includes> |
514 | | - <argLine>-Xms256m -Xmx512m</argLine> |
| 517 | + <argLine>${surefire.argLine.modules} -Xms256m -Xmx512m</argLine> |
515 | 518 | <systemPropertyVariables> |
516 | 519 | <htmlunit.maven>maven</htmlunit.maven> |
517 | 520 | </systemPropertyVariables> |
|
541 | 544 | <include>**/huge/HostParentOfBTest.java</include> |
542 | 545 | <include>**/huge/HostParentOfCTest.java</include> |
543 | 546 | </includes> |
544 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 547 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
545 | 548 | <systemPropertyVariables> |
546 | 549 | <htmlunit.maven>maven</htmlunit.maven> |
547 | 550 | </systemPropertyVariables> |
|
570 | 573 | <include>**/huge/HostParentOfDTest.java</include> |
571 | 574 | <include>**/huge/HostParentOfFTest.java</include> |
572 | 575 | </includes> |
573 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 576 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
574 | 577 | <systemPropertyVariables> |
575 | 578 | <htmlunit.maven>maven</htmlunit.maven> |
576 | 579 | </systemPropertyVariables> |
|
599 | 602 | <include>**/huge/HostParentOfHTest.java</include> |
600 | 603 | <include>**/huge/HostParentOfITest.java</include> |
601 | 604 | </includes> |
602 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 605 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
603 | 606 | <systemPropertyVariables> |
604 | 607 | <htmlunit.maven>maven</htmlunit.maven> |
605 | 608 | </systemPropertyVariables> |
|
628 | 631 | <include>**/huge/HostParentOfMTest.java</include> |
629 | 632 | <include>**/huge/HostParentOfNTest.java</include> |
630 | 633 | </includes> |
631 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 634 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
632 | 635 | <systemPropertyVariables> |
633 | 636 | <htmlunit.maven>maven</htmlunit.maven> |
634 | 637 | </systemPropertyVariables> |
|
656 | 659 | <includes> |
657 | 660 | <include>**/huge/HostParentOfPTest.java</include> |
658 | 661 | </includes> |
659 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 662 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
660 | 663 | <systemPropertyVariables> |
661 | 664 | <htmlunit.maven>maven</htmlunit.maven> |
662 | 665 | </systemPropertyVariables> |
|
684 | 687 | <includes> |
685 | 688 | <include>**/huge/HostParentOfSTest.java</include> |
686 | 689 | </includes> |
687 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 690 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
688 | 691 | <systemPropertyVariables> |
689 | 692 | <htmlunit.maven>maven</htmlunit.maven> |
690 | 693 | </systemPropertyVariables> |
|
712 | 715 | <includes> |
713 | 716 | <include>**/huge/HostParentOfS2Test.java</include> |
714 | 717 | </includes> |
715 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 718 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
716 | 719 | <systemPropertyVariables> |
717 | 720 | <htmlunit.maven>maven</htmlunit.maven> |
718 | 721 | </systemPropertyVariables> |
|
741 | 744 | <include>**/huge/HostParentOfTTest.java</include> |
742 | 745 | <include>**/huge/HostParentOfWTest.java</include> |
743 | 746 | </includes> |
744 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 747 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
745 | 748 | <systemPropertyVariables> |
746 | 749 | <htmlunit.maven>maven</htmlunit.maven> |
747 | 750 | </systemPropertyVariables> |
|
769 | 772 | <includes> |
770 | 773 | <include>**/encoding/**</include> |
771 | 774 | </includes> |
772 | | - <argLine>-Xms512m -Xmx1024m</argLine> |
| 775 | + <argLine>${surefire.argLine.modules} -Xms512m -Xmx1024m</argLine> |
773 | 776 | <systemPropertyVariables> |
774 | 777 | <htmlunit.maven>maven</htmlunit.maven> |
775 | 778 | </systemPropertyVariables> |
|
0 commit comments