Skip to content

Commit 6672524

Browse files
committed
Add module overrides for tests
1 parent 772955a commit 6672524

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

hibernate6/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,21 @@ Hibernate (https://hibernate.org/) version 6.x with Jakarta data types.
9090
<groupId>org.cyclonedx</groupId>
9191
<artifactId>cyclonedx-maven-plugin</artifactId>
9292
</plugin>
93+
<!-- 05-Nov-2025, tatu: Could not figure out how to make it all work
94+
with separate test `module-info.java`, so for now just open up access
95+
-->
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-surefire-plugin</artifactId>
99+
<configuration>
100+
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED
101+
--add-opens=java.base/java.util=ALL-UNNAMED
102+
--add-opens=tools.jackson.datatype.hibernate6/tools.jackson.datatype.hibernate6.data=ALL-UNNAMED
103+
--add-opens=tools.jackson.datatype.hibernate6/tools.jackson.datatype.hibernate6.data=org.hibernate.orm.core
104+
--add-opens=tools.jackson.datatype.hibernate6/tools.jackson.datatype.hibernate6.data=tools.jackson.databind
105+
</argLine>
106+
</configuration>
107+
</plugin>
93108
<!-- 05-Jul-2020, tatu: Add generation of Gradle Module Metadata -->
94109
<!-- 28-Feb-2025, jjohannes: Apply plugin last as it has to be the last of all 'package phase' plugins -->
95110
<plugin>

0 commit comments

Comments
 (0)