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

alien11689 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/aries.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6c7948910 ARIES-2165: Build jndi on java 11, 17, 21 and 25 (#949)
6c7948910 is described below

commit 6c794891006a5297e0d716bf86b43af0623bfc53
Author: Dominik Przybysz <[email protected]>
AuthorDate: Fri Nov 6 19:31:03 2026 +0100

    ARIES-2165: Build jndi on java 11, 17, 21 and 25 (#949)
---
 .github/workflows/jndi.yml |  2 +-
 jndi/jndi-core/pom.xml     | 23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/jndi.yml b/.github/workflows/jndi.yml
index c1575b1d9..f73a4a3ff 100644
--- a/.github/workflows/jndi.yml
+++ b/.github/workflows/jndi.yml
@@ -34,7 +34,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        java: [ 8 ]
+        java: [ 8, 11, 17, 21, 25 ]
         os: [ ubuntu-latest ]
     name: JDK${{ matrix.java }} ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
diff --git a/jndi/jndi-core/pom.xml b/jndi/jndi-core/pom.xml
index c936369e8..0e85d3713 100644
--- a/jndi/jndi-core/pom.xml
+++ b/jndi/jndi-core/pom.xml
@@ -102,4 +102,27 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
+
+    <profiles>
+        <profile>
+            <id>java9To27</id>
+            <activation>
+                <jdk>(8,28)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <argLine>
+                                --add-opens 
java.naming/javax.naming.spi=ALL-UNNAMED
+                                --add-opens 
java.naming/com.sun.naming.internal=ALL-UNNAMED
+                            </argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Reply via email to