diff --git a/Jenkinsfile b/Jenkinsfile
index 665a56254c2..3080789340b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -44,7 +44,7 @@ pipeline {
tools {
maven 'maven_3_latest'
- jdk 'jdk_1.8_latest'
+ jdk 'jdk_17_latest'
}
environment {
diff --git a/ambari-admin/pom.xml b/ambari-admin/pom.xml
index c9b36f4ddef..ab43a085f32 100644
--- a/ambari-admin/pom.xml
+++ b/ambari-admin/pom.xml
@@ -155,7 +155,7 @@
maven-compiler-plugin
- 3.2
+ 3.5
maven-assembly-plugin
diff --git a/ambari-agent/conf/unix/ambari-env.sh b/ambari-agent/conf/unix/ambari-env.sh
index 6458b87a755..9b4e3e2ab61 100644
--- a/ambari-agent/conf/unix/ambari-env.sh
+++ b/ambari-agent/conf/unix/ambari-env.sh
@@ -15,7 +15,14 @@
# To change a passphrase used by the agent adjust the line below. This value is used when no passphrase is
# given through environment variable
+
+AMBARI_JVM_ARGS="$AMBARI_JVM_ARGS --add-opens java.base/java.lang=ALL-UNNAMED "
+AMBARI_JVM_ARGS="$AMBARI_JVM_ARGS --add-opens java.base/java.util.regex=ALL-UNNAMED "
+AMBARI_JVM_ARGS="$AMBARI_JVM_ARGS --add-opens java.base/java.util=ALL-UNNAMED "
+export AMBARI_JVM_ARGS="$AMBARI_JVM_ARGS --add-opens java.base/java.lang.reflect=ALL-UNNAMED "
+
AMBARI_PASSPHRASE="DEV"
+export AMBARI_JVM_ARGS="$AMBARI_JVM_ARGS -Xms512m -Xmx2048m -Djava.security.auth.login.config=$ROOT/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Dcom.sun.jndi.ldap.connect.pool.protocol=\"plain ssl\" -Dcom.sun.jndi.ldap.connect.pool.maxsize=20 -Dcom.sun.jndi.ldap.connect.pool.timeout=300000"
export PATH=$PATH:/var/lib/ambari-agent
export PYTHONPATH=/usr/lib/ambari-agent/lib:$PYTHONPATH
diff --git a/ambari-agent/pom.xml b/ambari-agent/pom.xml
index 30330318203..f1587d2bfaa 100644
--- a/ambari-agent/pom.xml
+++ b/ambari-agent/pom.xml
@@ -100,7 +100,7 @@
com.google.guava
guava
- 18.0
+ 32.1.3-jre
org.apache.hadoop
@@ -222,7 +222,7 @@
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}
@@ -452,7 +452,7 @@
false
- 3.4.0
+ 3.5.1
shade-zkmigrator
diff --git a/ambari-funtest/pom.xml b/ambari-funtest/pom.xml
index c4e44b42e20..8c2b86392f0 100644
--- a/ambari-funtest/pom.xml
+++ b/ambari-funtest/pom.xml
@@ -25,7 +25,7 @@
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}
diff --git a/ambari-project/pom.xml b/ambari-project/pom.xml
index 72dfdac6985..5f343320378 100644
--- a/ambari-project/pom.xml
+++ b/ambari-project/pom.xml
@@ -30,7 +30,7 @@
true
5.5.2
${project.parent.basedir}
- 1.6.3
+ 2.0.9
9.4.12.v20180830
1.0.0
8.9
@@ -39,16 +39,17 @@
2.0.0
1.2.22
1.2.13
- 4.1.0
+ 5.1.0
5.3.22
5.7.8
- 2.12.7
- 2.12.7.1
+ 2.13.5
+ 2.13.5
42.3.8
1.17.6
4
false
-Xmx1024m -Xms512m
+ 2.41
@@ -201,11 +202,11 @@
guice-assistedinject
${guice.version}
-
+
com.google.inject.extensions
guice-persist
@@ -305,7 +306,7 @@
com.google.guava
guava
- 28.0-jre
+ 32.1.3-jre
com.google.code.findbugs
@@ -315,7 +316,7 @@
org.mockito
mockito-core
- 1.10.19
+ 2.28.2
org.hamcrest
@@ -351,7 +352,7 @@
org.powermock
- powermock-api-mockito
+ powermock-api-mockito2
${powermock.version}
@@ -440,14 +441,14 @@
3.1.0
- com.sun.jersey
- jersey-core
- 1.19
+ org.glassfish.jersey.core
+ jersey-common
+ ${jersey.version}
- com.sun.jersey
+ corg.glassfish.jersey.core
jersey-grizzly
- 1.19
+ ${jersey.version}
org.codehaus.jackson
@@ -486,45 +487,57 @@
1.9.36
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-bundle
- 1.19
+ ${jersey.version}
- com.sun.jersey
- jersey-json
- 1.19
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ ${jersey.version}
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-server
- 1.19
+ ${jersey.version}
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-client
- 1.19
+ ${jersey.version}
- com.sun.jersey.contribs
- jersey-multipart
- 1.19
+ org.glassfish.jersey.media
+ jersey-media-multipart
+ ${jersey.version}
- com.sun.jersey.jersey-test-framework
+ org.glassfish.jersey.test-framework
jersey-test-framework-core
- 1.19
+ ${jersey.version}
test
+
+
+ org.junit.jupiter
+ junit-jupiter
+
+
- com.sun.jersey.jersey-test-framework
- jersey-test-framework-grizzly2
- 1.19
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-grizzly2
+ ${jersey.version}
+
+
+ org.junit.jupiter
+ junit-jupiter
+
+
- com.sun.jersey.contribs
- jersey-guice
- 1.19
+ org.glassfish.jersey.containers
+ jersey-container-servlet
+ ${jersey.version}
org.springframework
@@ -576,37 +589,6 @@
spring-webmvc
${spring.version}
-
- com.sun.jersey.contribs
- jersey-spring
- 1.19
-
-
- org.springframework
- spring
-
-
- org.springframework
- spring-core
-
-
- org.springframework
- spring-web
-
-
- org.springframework
- spring-beans
-
-
- org.springframework
- spring-context
-
-
- org.springframework
- spring-aop
-
-
-
junit
junit
@@ -650,7 +632,7 @@
org.easymock
easymock
- 3.4
+ 5.2.0
io.swagger
@@ -770,7 +752,7 @@
org.apache.maven.plugins
maven-failsafe-plugin
- 2.20
+ 3.2.5
org.vafer
diff --git a/ambari-server-spi/pom.xml b/ambari-server-spi/pom.xml
index 75af3875593..fb8cd111c6c 100644
--- a/ambari-server-spi/pom.xml
+++ b/ambari-server-spi/pom.xml
@@ -162,5 +162,10 @@
junit
test
+
+ javax.xml.bind
+ jaxb-api
+ 2.3.1
+
diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml
index 47f657ac11d..81c9bf86200 100644
--- a/ambari-server/pom.xml
+++ b/ambari-server/pom.xml
@@ -111,7 +111,7 @@
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}
@@ -418,7 +418,7 @@
-
+
+
org.codehaus.mojo
properties-maven-plugin
@@ -718,7 +718,27 @@
maven-surefire-plugin
${skipSurefireTests}
- ${surefire.argLine}
+
+ ${surefire.argLine}
+ --add-opens java.base/java.lang=ALL-UNNAMED
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED
+ --add-opens java.management/java.lang.management=ALL-UNNAMED
+ --add-opens java.base/java.io=ALL-UNNAMED
+ --add-opens java.base/java.nio=ALL-UNNAMED
+ --add-opens java.base/java.util=ALL-UNNAMED
+ --add-opens java.base/java.util.regex=ALL-UNNAMED
+ --add-opens java.base/java.util.concurrent=ALL-UNNAMED
+ --add-opens java.base/java.net=ALL-UNNAMED
+ --add-opens java.base/java.util.stream=ALL-UNNAMED
+ --add-opens java.base/java.math=ALL-UNNAMED
+ --add-opens java.base/java.util.concurrent.locks=ALL-UNNAMED
+ --add-opens java.base/java.nio.charset=ALL-UNNAMED
+ --add-opens java.logging/java.util.logging=ALL-UNNAMED
+ --add-opens java.base/java.nio.file=ALL-UNNAMED
+ --add-opens java.base/java.text=ALL-UNNAMED
+ --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED
+ --add-opens java.naming/com.sun.jndi.ldap=ALL-UNNAMED
+
${testcase.groups}
@@ -1131,6 +1151,17 @@
+
+ nl.jqno.equalsverifier
+ equalsverifier
+ 3.15.6
+ test
+
+
+ jakarta.persistence
+ jakarta.persistence-api
+ 2.2.3
+
${project.groupId}
ambari-views
@@ -1170,6 +1201,7 @@
com.google.guava
guava
+ 32.1.3-jre
com.google.inject
@@ -1179,10 +1211,10 @@
com.google.inject.extensions
guice-assistedinject
-
+
com.google.inject.extensions
guice-persist
@@ -1352,8 +1384,15 @@
javax.servlet-api
- com.sun.jersey
- jersey-json
+ org.glassfish.jersey.containers
+ jersey-container-jdk-http
+ ${jersey.version}
+ test
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ ${jersey.version}
org.codehaus.jackson
@@ -1374,20 +1413,21 @@
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-server
- com.sun.jersey
- jersey-client
+ org.glassfish.jersey.media
+ jersey-media-multipart
- com.sun.jersey.contribs
- jersey-multipart
+ org.glassfish.jersey.containers
+ jersey-container-servlet
- com.sun.jersey.contribs
- jersey-guice
+ org.glassfish.jersey.inject
+ jersey-hk2
+ ${jersey.version}
org.codehaus.jackson
@@ -1434,11 +1474,6 @@
org.codehaus.jackson
jackson-xc
-
- com.sun.jersey.jersey-test-framework
- jersey-test-framework-core
- test
-
org.springframework
spring-aop
@@ -1479,40 +1514,26 @@
- com.sun.jersey.contribs
- jersey-spring
- 1.19
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-grizzly2
+ test
- org.springframework
- spring
-
-
- org.springframework
- spring-core
-
-
- org.springframework
- spring-web
-
-
- org.springframework
- spring-beans
-
-
- org.springframework
- spring-context
-
-
- org.springframework
- spring-aop
+ org.junit.jupiter
+ junit-jupiter
- com.sun.jersey.jersey-test-framework
- jersey-test-framework-grizzly2
+ org.glassfish.jersey.test-framework
+ jersey-test-framework-core
test
+
+
+ org.junit.jupiter
+ junit-jupiter
+
+
org.codehaus.jettison
@@ -1551,13 +1572,7 @@
org.powermock
- powermock-api-mockito
- test
-
-
- nl.jqno.equalsverifier
- equalsverifier
- 1.7.4
+ powermock-api-mockito2
test
@@ -1727,6 +1742,18 @@
org.slf4j
slf4j-log4j12
+
+ com.sun.jersey
+ jersey-core
+
+
+ com.sun.jersey
+ jersey-server
+
+
+ com.sun.jersey
+ jersey-servlet
+
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/AmbariCsrfProtectionFilter.java b/ambari-server/src/main/java/org/apache/ambari/server/api/AmbariCsrfProtectionFilter.java
index b3da328b32e..2e79f42fea6 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/api/AmbariCsrfProtectionFilter.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/api/AmbariCsrfProtectionFilter.java
@@ -17,20 +17,20 @@
*/
package org.apache.ambari.server.api;
+import java.io.IOException;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.apache.ambari.server.api.services.ResultStatus;
import org.apache.ambari.server.api.services.serializers.JsonSerializer;
-import com.sun.jersey.spi.container.ContainerRequest;
-import com.sun.jersey.spi.container.ContainerRequestFilter;
-
public class AmbariCsrfProtectionFilter implements ContainerRequestFilter {
private static final Set IGNORED_METHODS;
private static final String CSRF_HEADER = "X-Requested-By";
@@ -48,13 +48,12 @@ public class AmbariCsrfProtectionFilter implements ContainerRequestFilter {
}
@Override
- public ContainerRequest filter(ContainerRequest containerRequest) {
- if (!IGNORED_METHODS.contains(containerRequest.getMethod()) &&
- !containerRequest.getRequestHeaders().containsKey(CSRF_HEADER)) {
+ public void filter(ContainerRequestContext containerRequestContext) throws IOException {
+ if (!IGNORED_METHODS.contains(containerRequestContext.getMethod()) &&
+ !containerRequestContext.getHeaders().containsKey(CSRF_HEADER)) {
throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST).entity(
JSON_SERIALIZER.serializeError(new ResultStatus(ResultStatus.STATUS.BAD_REQUEST, ERROR_MESSAGE))
).type(MediaType.TEXT_PLAIN_TYPE).build());
}
- return containerRequest;
}
}
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigGroupService.java b/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigGroupService.java
index 093134dd581..9362063c993 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigGroupService.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigGroupService.java
@@ -75,7 +75,6 @@ public ConfigGroupService(String m_clusterName) {
* @return
*/
@GET
- @Path("") // This is needed if class level path is not present otherwise no Swagger docs will be generated for this method
@Produces(MediaType.TEXT_PLAIN)
@ApiOperation(value = "Returns all config groups", response = ConfigGroupResponse.ConfigGroupWrapper.class, responseContainer =
RESPONSE_CONTAINER_LIST)
@@ -137,7 +136,6 @@ public Response getConfigGroup(String body, @Context HttpHeaders headers,
* @return
*/
@POST
- @Path("") // This is needed if class level path is not present otherwise no Swagger docs will be generated for this method
@Produces(MediaType.TEXT_PLAIN)
@ApiOperation(value = "Creates a config group")
@ApiImplicitParams({
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigurationService.java b/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigurationService.java
index 71e1fa4c9f1..c45a9765f9d 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigurationService.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/api/services/ConfigurationService.java
@@ -79,7 +79,6 @@ public ServiceConfigVersionService getServiceConfigVersionService() {
* @return service collection resource representation
*/
@GET
- @Path("") // This is needed if class level path is not present otherwise no Swagger docs will be generated for this method
@Produces(MediaType.TEXT_PLAIN)
@ApiOperation(value = "Get all configurations", response = ConfigurationResponse.class, responseContainer =
RESPONSE_CONTAINER_LIST)
@@ -125,7 +124,6 @@ public Response getConfigurations(String body, @Context HttpHeaders headers, @Co
* @return status code only, 201 if successful
*/
@POST
- @Path("") // This is needed if class level path is not present otherwise no Swagger docs will be generated for this method
@Produces(MediaType.TEXT_PLAIN)
@ApiOperation(value = "Create new configurations")
@ApiImplicitParams({
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostComponentService.java b/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostComponentService.java
index a37883f8eda..855e2852c9e 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostComponentService.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/api/services/HostComponentService.java
@@ -138,7 +138,6 @@ public Response getHostComponent(String body, @Context HttpHeaders headers, @Con
* @return host_component collection resource representation
*/
@GET
- @Path("") // This is needed if class level path is not present otherwise no Swagger docs will be generated for this method
@Produces(MediaType.TEXT_PLAIN)
@ApiOperation(value = "Get all host components for a host", response = HostComponentSwagger.class, responseContainer = RESPONSE_CONTAINER_LIST)
@ApiImplicitParams({
@@ -331,7 +330,6 @@ public Response deleteHostComponent(@Context HttpHeaders headers, @Context UriIn
* @return host_component resource representation
*/
@DELETE
- @Path("") // This is needed if class level path is not present otherwise no Swagger docs will be generated for this method
@Produces(MediaType.TEXT_PLAIN)
@ApiOperation(value = "Delete host components")
@ApiImplicitParams({
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/api/services/LocalUriInfo.java b/ambari-server/src/main/java/org/apache/ambari/server/api/services/LocalUriInfo.java
index 80913a9a932..415570b319f 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/api/services/LocalUriInfo.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/api/services/LocalUriInfo.java
@@ -22,6 +22,7 @@
import java.net.URISyntaxException;
import java.util.List;
+import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.PathSegment;
import javax.ws.rs.core.UriBuilder;
@@ -30,8 +31,6 @@
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;
-import com.sun.jersey.core.util.MultivaluedMapImpl;
-
/**
* Internal {@link UriInfo} implementation. Most of the methods are not
* currently supported.
@@ -75,6 +74,14 @@ public List
+
+ javax.xml.bind
+ jaxb-api
+ 2.3.1
+
com.google.guava
guava
+ 32.1.3-jre
org.easymock
@@ -136,7 +142,7 @@
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}
diff --git a/ambari-views/examples/auto-cluster-view/pom.xml b/ambari-views/examples/auto-cluster-view/pom.xml
index bec838f7778..189cb9ee4a4 100644
--- a/ambari-views/examples/auto-cluster-view/pom.xml
+++ b/ambari-views/examples/auto-cluster-view/pom.xml
@@ -36,9 +36,9 @@
2.0.0-SNAPSHOT
- com.sun.jersey
- jersey-server
- 1.8
+ org.glassfish.jersey.core
+ jersey-server
+ ${jersey.version}
javax.inject
diff --git a/ambari-views/examples/calculator-view/pom.xml b/ambari-views/examples/calculator-view/pom.xml
index 8e0bb365b73..b8ea790b2dc 100644
--- a/ambari-views/examples/calculator-view/pom.xml
+++ b/ambari-views/examples/calculator-view/pom.xml
@@ -47,9 +47,9 @@
${revision}
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-server
- 1.8
+ ${jersey.version}
javax.inject
diff --git a/ambari-views/examples/cluster-view/pom.xml b/ambari-views/examples/cluster-view/pom.xml
index e40958a0384..b4cc4787d37 100644
--- a/ambari-views/examples/cluster-view/pom.xml
+++ b/ambari-views/examples/cluster-view/pom.xml
@@ -35,9 +35,9 @@
${revision}
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-server
- 1.8
+ ${jersey.version}
javax.inject
diff --git a/ambari-views/examples/favorite-view/pom.xml b/ambari-views/examples/favorite-view/pom.xml
index d8846bd1fe3..dd37f91b09d 100644
--- a/ambari-views/examples/favorite-view/pom.xml
+++ b/ambari-views/examples/favorite-view/pom.xml
@@ -47,9 +47,9 @@
${revision}
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-server
- 1.8
+ ${jersey.version}
javax.inject
diff --git a/ambari-views/examples/hello-servlet-view/pom.xml b/ambari-views/examples/hello-servlet-view/pom.xml
index 50511fa6fcc..accd9cb348d 100644
--- a/ambari-views/examples/hello-servlet-view/pom.xml
+++ b/ambari-views/examples/hello-servlet-view/pom.xml
@@ -47,9 +47,9 @@
${revision}
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-server
- 1.8
+ ${jersey.version}
javax.servlet
diff --git a/ambari-views/pom.xml b/ambari-views/pom.xml
index 6122705db0a..62c7d028ffe 100644
--- a/ambari-views/pom.xml
+++ b/ambari-views/pom.xml
@@ -43,9 +43,9 @@
test
- com.sun.jersey
- jersey-core
- 1.8
+ org.glassfish.jersey.core
+ jersey-server
+ ${jersey.version}
commons-codec
@@ -83,7 +83,7 @@
maven-compiler-plugin
- 3.2
+ 3.5
org.vafer
diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml
index 76b43fcafa5..c2bcc7ef336 100644
--- a/ambari-web/pom.xml
+++ b/ambari-web/pom.xml
@@ -64,7 +64,7 @@
maven-compiler-plugin
- 3.2
+ 3.5
org.codehaus.mojo
diff --git a/contrib/ambari-log4j/pom.xml b/contrib/ambari-log4j/pom.xml
index 40c29f1ffc6..55ec0dc416e 100644
--- a/contrib/ambari-log4j/pom.xml
+++ b/contrib/ambari-log4j/pom.xml
@@ -73,16 +73,16 @@
jackson-mapper-asl
1.9.2
-
- com.sun.jersey
- jersey-json
- 1.13
-
-
- com.sun.jersey
- jersey-core
- 1.13
-
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ 2.41
+
+
+ org.glassfish.jersey.core
+ jersey-common
+ 2.41
+
com.sun.jersey
jersey-servlet
diff --git a/contrib/fast-hdfs-resource/pom.xml b/contrib/fast-hdfs-resource/pom.xml
index 35c31ff9acb..59d6c179cd5 100644
--- a/contrib/fast-hdfs-resource/pom.xml
+++ b/contrib/fast-hdfs-resource/pom.xml
@@ -55,6 +55,7 @@
org.apache.maven.plugins
maven-shade-plugin
+ 3.5.1
false
diff --git a/contrib/views/commons/pom.xml b/contrib/views/commons/pom.xml
index 9ea02240980..5c9a4c7df79 100644
--- a/contrib/views/commons/pom.xml
+++ b/contrib/views/commons/pom.xml
@@ -94,8 +94,9 @@
- com.sun.jersey.contribs
- jersey-multipart
+ org.glassfish.jersey.media
+ jersey-media-multipart
+ 2.41
@@ -112,9 +113,15 @@
- com.sun.jersey.jersey-test-framework
+ org.glassfish.jersey.test-framework
jersey-test-framework-core
test
+
+
+ org.junit.jupiter
+ junit-jupiter
+
+
diff --git a/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/UploadService.java b/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/UploadService.java
index a2fe7ebce85..74eff74da7a 100644
--- a/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/UploadService.java
+++ b/contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/UploadService.java
@@ -18,12 +18,11 @@
package org.apache.ambari.view.commons.hdfs;
-import com.sun.jersey.core.header.FormDataContentDisposition;
-import com.sun.jersey.multipart.FormDataParam;
-import org.apache.ambari.view.ViewContext;
-import org.apache.ambari.view.commons.exceptions.ServiceFormattedException;
-import org.apache.ambari.view.utils.hdfs.HdfsApi;
-import org.apache.hadoop.fs.FSDataOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Map;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipInputStream;
import javax.ws.rs.Consumes;
import javax.ws.rs.PUT;
@@ -32,11 +31,14 @@
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Map;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
+
+import org.apache.ambari.view.ViewContext;
+import org.apache.ambari.view.commons.exceptions.ServiceFormattedException;
+import org.apache.ambari.view.utils.hdfs.HdfsApi;
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
+import org.glassfish.jersey.media.multipart.FormDataParam;
+
/**
* Upload service
diff --git a/contrib/views/files/pom.xml b/contrib/views/files/pom.xml
index b930eb0ef33..142dac1cee0 100644
--- a/contrib/views/files/pom.xml
+++ b/contrib/views/files/pom.xml
@@ -101,8 +101,8 @@
- com.sun.jersey.contribs
- jersey-multipart
+ org.glassfish.jersey.media
+ jersey-media-multipart
com.googlecode.json-simple
@@ -116,7 +116,7 @@
- com.sun.jersey.jersey-test-framework
+ org.glassfish.jersey.test-framework
jersey-test-framework-core
test
diff --git a/contrib/views/files/src/test/java/org/apache/ambari/view/filebrowser/FilebrowserTest.java b/contrib/views/files/src/test/java/org/apache/ambari/view/filebrowser/FilebrowserTest.java
index 6ddc8f6e692..d0dd4bb25d0 100644
--- a/contrib/views/files/src/test/java/org/apache/ambari/view/filebrowser/FilebrowserTest.java
+++ b/contrib/views/files/src/test/java/org/apache/ambari/view/filebrowser/FilebrowserTest.java
@@ -42,6 +42,8 @@
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileUtil;
import org.apache.hadoop.hdfs.MiniDFSCluster;
+import org.glassfish.jersey.media.multipart.FormDataBodyPart;
+import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.junit.After;
@@ -52,8 +54,6 @@
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
-import com.sun.jersey.core.header.FormDataContentDisposition;
-import com.sun.jersey.multipart.FormDataBodyPart;
diff --git a/contrib/views/pig/pom.xml b/contrib/views/pig/pom.xml
index 965221a2828..ab65056e310 100644
--- a/contrib/views/pig/pom.xml
+++ b/contrib/views/pig/pom.xml
@@ -32,24 +32,24 @@
guice
- com.sun.jersey.contribs
- jersey-multipart
- 1.18
+ org.glassfish.jersey.media
+ jersey-media-multipart
+ 2.41
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-client
- 1.8
+ 2.41
- com.sun.jersey
- jersey-core
- 1.18.1
+ org.glassfish.jersey.core
+ jersey-common
+ 2.41
- com.sun.jersey
- jersey-json
- 1.9
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ 2.41
com.googlecode.json-simple
@@ -293,7 +293,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}
diff --git a/contrib/views/utils/pom.xml b/contrib/views/utils/pom.xml
index 692f1e7b088..0af426f8125 100644
--- a/contrib/views/utils/pom.xml
+++ b/contrib/views/utils/pom.xml
@@ -123,9 +123,9 @@
jersey-container-servlet
- com.sun.jersey.contribs
- jersey-multipart
- 1.18
+ org.glassfish.jersey.media
+ jersey-media-multipart
+ 2.41
com.googlecode.json-simple
@@ -146,8 +146,14 @@
org.glassfish.jersey.test-framework.providers
jersey-test-framework-provider-grizzly2
- 2.6
+ 2.41
test
+
+
+ org.junit.jupiter
+ junit-jupiter
+
+
@@ -156,9 +162,15 @@
jersey-test-framework-provider-bundle
- 2.6
+ 2.41
test
pom
+
+
+ org.junit.jupiter
+ junit-jupiter
+
+
org.apache.ambari
diff --git a/contrib/views/wfmanager/pom.xml b/contrib/views/wfmanager/pom.xml
index 260f391d75a..4f076b4189b 100644
--- a/contrib/views/wfmanager/pom.xml
+++ b/contrib/views/wfmanager/pom.xml
@@ -37,20 +37,16 @@
ambari-views-commons
${revision}
-
- com.sun.jersey
- jersey-core
-
- com.sun.jersey
+ org.glassfish.jersey.core
jersey-client
- com.sun.jersey
- jersey-json
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
javax.servlet
@@ -222,7 +218,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}
diff --git a/contrib/views/wfmanager/src/main/resources/ui/pom.xml b/contrib/views/wfmanager/src/main/resources/ui/pom.xml
index b47161ce84f..70cbb7cb193 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/pom.xml
+++ b/contrib/views/wfmanager/src/main/resources/ui/pom.xml
@@ -102,7 +102,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}
diff --git a/pom.xml b/pom.xml
index ca5fccf0174..c3aeb862e9f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,7 +82,7 @@
3.0.0.0-SNAPSHOT
UTF-8
${user.home}/clover.license
- 1.8
+ 17
1.2
Hortonworks
universe/admin
@@ -95,8 +95,8 @@
Apache Development Snapshot Repository
https://repository.apache.org/content/repositories/snapshots
package
- 2.6.2
2.1.4
+ 2.7.14
@@ -165,7 +165,7 @@
org.apache.maven.plugins
maven-surefire-plugin
- 2.20
+ 3.2.5
org.codehaus.mojo
@@ -225,7 +225,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.2
+ 3.5
${jdk.version}
${jdk.version}