You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2024/04/13 18:21:59 UTC

(tomee) 04/10: Adds --add-opens for legacy code fragements with libraries not supporting J17+

This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch amq6
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit 095765f8afa1048a3102263a7ca6b9d4b68d48c1
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Fri Apr 12 11:48:13 2024 +0200

    Adds --add-opens for legacy code fragements with libraries not supporting J17+
---
 server/openejb-ejbd/pom.xml    |  3 ++-
 server/openejb-hessian/pom.xml | 33 ++++++++++++++-------------------
 2 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/server/openejb-ejbd/pom.xml b/server/openejb-ejbd/pom.xml
index bca744fab3..feced152fa 100644
--- a/server/openejb-ejbd/pom.xml
+++ b/server/openejb-ejbd/pom.xml
@@ -89,6 +89,7 @@
           <argLine>"-javaagent:${project.build.directory}/openejb-javaagent-${project.version}.jar=foo=bar"
             -Dopenejb.classloader.forced-skip=org.apache.openejb.jee.,org.apache.openejb.api.
             -Dopenejb.classloader.forced-load=org.apache.openejb
+            --add-opens=java.base/java.lang=ALL-UNNAMED
           </argLine>
           <systemPropertyVariables>
             <!--
@@ -174,7 +175,7 @@
     <dependency>
       <groupId>cglib</groupId>
       <artifactId>cglib</artifactId>
-      <version>3.2.5</version>
+      <version>3.3.0</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
diff --git a/server/openejb-hessian/pom.xml b/server/openejb-hessian/pom.xml
index d54914235d..d2e7a9c441 100644
--- a/server/openejb-hessian/pom.xml
+++ b/server/openejb-hessian/pom.xml
@@ -60,23 +60,18 @@ limitations under the License.
     </dependency>
   </dependencies>
 
-  <profiles>
-    <profile>
-      <id>java9</id>
-      <activation>
-        <jdk>9</jdk>
-      </activation>
-      <build>
-        <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-surefire-plugin</artifactId>
-            <configuration> <!-- com.caucho.hessian.io.StackTraceElementDeserializer doesnt support java 9 without "opens" -->
-              <skip>true</skip>
-            </configuration>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-  </profiles>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <reuseForks>false</reuseForks>
+          <argLine>
+            --add-opens=java.base/java.lang=ALL-UNNAMED
+          </argLine>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>