Entferne veralte --add-opens JavaFX-Module-Argumente aus Surefire
Java 21 mit modernem JavaFX (21.x) und Monocle benötigt die expliziten --add-opens Argumente für javafx.graphics nicht mehr. Diese Argumente verursachten "Unknown module" Warnungen beim Build, da die JavaFX-Module in headless Tests nicht als benannte Module vorhanden sind. Mit deren Entfernung ist der Build sauberer und alle Tests bestehen weiterhin. Die verbleibende JavaFX-Warnung "Unsupported JavaFX configuration" ist unvermeidlich und harmlos bei Monocle-Tests. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,8 +105,8 @@
|
|||||||
prism.order=sw enables software rendering (no GPU required);
|
prism.order=sw enables software rendering (no GPU required);
|
||||||
prism.text=t2k selects the T2K text rasterizer (headless-safe);
|
prism.text=t2k selects the T2K text rasterizer (headless-safe);
|
||||||
java.awt.headless=true signals headless mode to AWT/Swing interop layers.
|
java.awt.headless=true signals headless mode to AWT/Swing interop layers.
|
||||||
The add-opens args are required for JavaFX internal access patterns used
|
Note: --add-opens arguments for javafx.graphics are no longer required.
|
||||||
by Monocle and the Platform.startup API in Java 21 module context.
|
Modern JavaFX (21.x) with Monocle on Java 21 works without module opening.
|
||||||
-->
|
-->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -119,8 +119,6 @@
|
|||||||
-Dprism.order=sw
|
-Dprism.order=sw
|
||||||
-Dprism.text=t2k
|
-Dprism.text=t2k
|
||||||
-Djava.awt.headless=true
|
-Djava.awt.headless=true
|
||||||
--add-opens=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
|
|
||||||
--add-opens=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED
|
|
||||||
</argLine>
|
</argLine>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
Reference in New Issue
Block a user