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

alien11689 pushed a commit to branch ARIES-2165-build-jndi-on-java-11-17-21-25
in repository https://gitbox.apache.org/repos/asf/aries.git

commit b39baf2538c76fbdadf2ea9448449de0e7d7d2b1
Author: Dominik Przybysz <[email protected]>
AuthorDate: Fri Nov 6 18:20:17 2026 +0100

    ARIES-2165: Build jndi on java 11, 17, 21 and 25
---
 .github/workflows/jndi.yml |  2 +-
 jndi/jndi-core/pom.xml     | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 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..7d82d6e4f 100644
--- a/jndi/jndi-core/pom.xml
+++ b/jndi/jndi-core/pom.xml
@@ -102,4 +102,46 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
+
+    <profiles>
+        <profile>
+            <id>java9To17</id>
+            <activation>
+                <jdk>(8,18)</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
+                            </argLine>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>java18To27</id>
+            <activation>
+                <jdk>(18,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