From 38c1c6d7b9c0ae36d57aba5f4ba1298991cfcdcd Mon Sep 17 00:00:00 2001 From: jansupol <15908245+jansupol@users.noreply.github.com> Date: Thu, 11 Apr 2019 15:44:52 +0200 Subject: [PATCH] Update hk2 osgi-resource-locator to latest 1.0.3 version (#4079) Signed-off-by: Jan Supol --- pom.xml | 10 ++++++---- .../jersey/osgi/test/basic/JsonJettisonTest.java | 7 +++++-- .../jersey/osgi/test/basic/WebResourceFactoryTest.java | 5 ++++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index c43760c36b..a8a3fbd972 100644 --- a/pom.xml +++ b/pom.xml @@ -1442,7 +1442,7 @@ org.glassfish.hk2 osgi-resource-locator - 1.0.1 + 1.0.3 org.glassfish.main.hk2 @@ -1678,7 +1678,7 @@ org.osgi org.osgi.compendium - ${osgi.version} + ${osgi.compendium.version} provided @@ -1894,7 +1894,8 @@ org.apache.felix org.apache.felix.framework - 4.2.1 + + 5.0.1 test @@ -2030,7 +2031,8 @@ 4.1.31.Final 1.6.7 0.30.0 - 4.2.0 + 6.0.0 + 5.0.0 4.9.1 0.7.4 1.2.4 diff --git a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJettisonTest.java b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJettisonTest.java index d173643f5a..c29172398b 100644 --- a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJettisonTest.java +++ b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/JsonJettisonTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -26,6 +26,7 @@ import org.ops4j.pax.exam.Option; import org.ops4j.pax.exam.Configuration; +import static org.ops4j.pax.exam.CoreOptions.bootDelegationPackage; import static org.ops4j.pax.exam.CoreOptions.mavenBundle; import static org.ops4j.pax.exam.CoreOptions.systemPackage; @@ -40,11 +41,13 @@ public static Option[] configuration() { options.addAll(Helper.getCommonOsgiOptions()); options.addAll(Helper.expandedList( + bootDelegationPackage("javax.xml.bind"), + bootDelegationPackage("javax.xml.bind.*"), // jersey-json dependencies mavenBundle().groupId("org.glassfish.jersey.media").artifactId("jersey-media-json-jettison").versionAsInProject(), mavenBundle().groupId("org.codehaus.jettison").artifactId("jettison").versionAsInProject(), //SUN JAXB IMPL OSGI - mavenBundle().groupId("com.sun.xml.bind").artifactId("jaxb-osgi").versionAsInProject().versionAsInProject(), + mavenBundle().groupId("com.sun.xml.bind").artifactId("jaxb-osgi").versionAsInProject(), systemPackage("com.sun.source.tree"), systemPackage("com.sun.source.util") )); diff --git a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/WebResourceFactoryTest.java b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/WebResourceFactoryTest.java index faef96f373..ffcd49d1b9 100644 --- a/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/WebResourceFactoryTest.java +++ b/tests/osgi/functional/src/test/java/org/glassfish/jersey/osgi/test/basic/WebResourceFactoryTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -48,6 +48,7 @@ import org.ops4j.pax.exam.Option; import org.ops4j.pax.exam.junit.PaxExam; import static org.junit.Assert.assertEquals; +import static org.ops4j.pax.exam.CoreOptions.bootDelegationPackage; import static org.ops4j.pax.exam.CoreOptions.mavenBundle; import static org.ops4j.pax.exam.CoreOptions.systemPackage; @@ -69,6 +70,8 @@ public static Option[] configuration() { List