You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by pr...@apache.org on 2025/12/31 10:38:55 UTC
(ranger) 01/12: RANGER-4076: pom & config changes for jdk17 build
This is an automated email from the ASF dual-hosted git repository.
pradeep pushed a commit to branch RANGER-4076_master
in repository https://gitbox.apache.org/repos/asf/ranger.git
commit 5c9fbb785ee3bd3b443c084480c4b488a3f526a2
Author: Kishor Gollapalliwar <ki...@gmail.com>
AuthorDate: Mon Dec 8 14:51:38 2025 +0530
RANGER-4076: pom & config changes for jdk17 build
---
agents-common/pom.xml | 22 ++++++++++++++++------
distro/src/main/assembly/admin-web.xml | 2 +-
docs/src/site/resources/index.js | 4 ++--
hive-agent/pom.xml | 6 ++++++
pom.xml | 16 +++++++++++-----
security-admin/pom.xml | 6 ++++++
6 files changed, 42 insertions(+), 14 deletions(-)
diff --git a/agents-common/pom.xml b/agents-common/pom.xml
index a8a78925f..7770241a1 100644
--- a/agents-common/pom.xml
+++ b/agents-common/pom.xml
@@ -195,11 +195,7 @@
</exclusion>
</exclusions>
</dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- </dependency>
- <!-- To be added for JDK15 and above
+
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
@@ -210,7 +206,21 @@
<artifactId>js-scriptengine</artifactId>
<version>${graalvm.version}</version>
</dependency>
- -->
+ <dependency>
+ <groupId>org.graalvm.sdk</groupId>
+ <artifactId>graal-sdk</artifactId>
+ <version>${graalvm.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.graalvm.truffle</groupId>
+ <artifactId>truffle-api</artifactId>
+ <version>${graalvm.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ </dependency>
+
<!-- Test -->
<dependency>
<groupId>org.junit.jupiter</groupId>
diff --git a/distro/src/main/assembly/admin-web.xml b/distro/src/main/assembly/admin-web.xml
index 15c0f0f62..03e8f5020 100644
--- a/distro/src/main/assembly/admin-web.xml
+++ b/distro/src/main/assembly/admin-web.xml
@@ -611,7 +611,7 @@
<exclude>index.html</exclude>
</excludes>
<includes>
- <include>swagger.json</include>
+ <include>openapi.json</include>
</includes>
<fileMode>544</fileMode>
</fileSet>
diff --git a/docs/src/site/resources/index.js b/docs/src/site/resources/index.js
index 40a370056..870544a1a 100644
--- a/docs/src/site/resources/index.js
+++ b/docs/src/site/resources/index.js
@@ -39,7 +39,7 @@ const rangerLogo = `<svg width="130" height="40" viewBox="0 0 130 40" fill="none
window.onload = function() {
const ui = SwaggerUIBundle({
- url: getSwaggerBaseUrl(window.location.pathname) + "/swagger.json",
+ url: getSwaggerBaseUrl(window.location.pathname) + "/openapi.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
@@ -51,7 +51,7 @@ window.onload = function() {
],
layout: "StandaloneLayout",
requestInterceptor: function(request) {
- if (!request.url.includes("swagger.json")) {
+ if (!request.url.includes("openapi.json")) {
request.url = getAPIUrl(request.url);
}
if (request.method != "GET") {
diff --git a/hive-agent/pom.xml b/hive-agent/pom.xml
index 825f0f1e5..aae776150 100644
--- a/hive-agent/pom.xml
+++ b/hive-agent/pom.xml
@@ -207,6 +207,12 @@
<artifactId>javax.el</artifactId>
<version>${javax.el.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-runtime</artifactId>
+ <version>${hadoop.version}</version>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-core</artifactId>
diff --git a/pom.xml b/pom.xml
index 52cb11cc5..232288ea8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -90,7 +90,7 @@
<dnsjava.version>3.6.2</dnsjava.version>
<eclipse.jpa.version>2.7.12</eclipse.jpa.version>
<elasticsearch.version>7.10.2</elasticsearch.version>
- <enunciate.version>2.13.2</enunciate.version>
+ <enunciate.version>2.15.0</enunciate.version>
<fasterxml.jackson.databind.version>2.17.2</fasterxml.jackson.databind.version>
<fasterxml.jackson.version>2.17.2</fasterxml.jackson.version>
<fasterxml.woodstox.version>5.4.0</fasterxml.woodstox.version>
@@ -123,9 +123,9 @@
<!-- JaCoCo Properties -->
<jacoco.version>0.8.13</jacoco.version>
- <java.version.required>1.8</java.version.required>
- <javac.source.version>1.8</javac.source.version>
- <javac.target.version>1.8</javac.target.version>
+ <java.version.required>17</java.version.required>
+ <javac.source.version>17</javac.source.version>
+ <javac.target.version>17</javac.target.version>
<javax-inject.version>1</javax-inject.version>
<javax.annotation-api>1.3.2</javax.annotation-api>
<javax.el.version>3.0.1-b12</javax.el.version>
@@ -401,7 +401,9 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration>
- <argLine>${argLine} -Djava.library.path="${hadoop.library.path}${path.separator}${java.library.path}"</argLine>
+ <argLine>${argLine} -Djava.library.path="${hadoop.library.path}${path.separator}${java.library.path}"
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED
+ --add-opens java.base/com.sun.crypto.provider=ALL-UNNAMED</argLine>
<skipTests>${skipTests}</skipTests>
<encoding>UTF-8</encoding>
<systemProperties>
@@ -413,6 +415,10 @@
<name>catalina.base</name>
<value>${project.build.directory}</value>
</property>
+ <property>
+ <name>polyglot.engine.WarnInterpreterOnly</name>
+ <value>false</value>
+ </property>
</systemProperties>
</configuration>
</plugin>
diff --git a/security-admin/pom.xml b/security-admin/pom.xml
index 95e160de9..0571b7f98 100644
--- a/security-admin/pom.xml
+++ b/security-admin/pom.xml
@@ -575,6 +575,12 @@
<groupId>org.apache.ranger</groupId>
<artifactId>ugsync-util</artifactId>
<version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-core</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.ranger</groupId>