From 3c9d3c2c047d1072b70ea15e40effc1e9343fe7c Mon Sep 17 00:00:00 2001 From: Grzegorz Grzybek Date: Tue, 5 Jun 2018 09:22:04 +0200 Subject: [PATCH] [KEYCLOAK-7681] Review pax-web OSGi dependencies Co-Authored-By: Hynek Mlnarik --- adapters/oidc/fuse7/jetty94/pom.xml | 1 + adapters/oidc/fuse7/tomcat8/pom.xml | 1 + adapters/oidc/fuse7/undertow/pom.xml | 7 +------ adapters/oidc/osgi-adapter/pom.xml | 5 ----- .../osgi/features/src/main/resources/features.xml | 9 ++++++--- 5 files changed, 9 insertions(+), 14 deletions(-) diff --git a/adapters/oidc/fuse7/jetty94/pom.xml b/adapters/oidc/fuse7/jetty94/pom.xml index cdf0fc081f..5b8bfe0a19 100644 --- a/adapters/oidc/fuse7/jetty94/pom.xml +++ b/adapters/oidc/fuse7/jetty94/pom.xml @@ -36,6 +36,7 @@ !org.keycloak.adapters.osgi.jetty94, + org.ops4j.pax.web.*;version="[7.1,9)", org.keycloak.*;version="${project.version}", *;resolution:=optional diff --git a/adapters/oidc/fuse7/tomcat8/pom.xml b/adapters/oidc/fuse7/tomcat8/pom.xml index e38125ca03..4f859c2ef1 100644 --- a/adapters/oidc/fuse7/tomcat8/pom.xml +++ b/adapters/oidc/fuse7/tomcat8/pom.xml @@ -36,6 +36,7 @@ !org.keycloak.adapters.osgi.tomcat, + org.ops4j.pax.web.*;version="[7.1,9)", org.keycloak.*;version="${project.version}", *;resolution:=optional diff --git a/adapters/oidc/fuse7/undertow/pom.xml b/adapters/oidc/fuse7/undertow/pom.xml index e7304276fd..caa8e63936 100644 --- a/adapters/oidc/fuse7/undertow/pom.xml +++ b/adapters/oidc/fuse7/undertow/pom.xml @@ -38,7 +38,7 @@ !org.keycloak.adapters.osgi.undertow, org.keycloak.*;version="${project.version}", org.keycloak.adapters.osgi.*;version="${project.version}", - org.ops4j.pax.web.*;version="[3.0,8)", + org.ops4j.pax.web.*;version="[7.1,9)", javax.servlet.*;version="[2.5,4)";resolution:=optional, org.apache.cxf.transport.http;resolution:=optional;version="[3,4)", org.apache.cxf.transport.http_undertow;resolution:=optional;version="[3,4)", @@ -65,11 +65,6 @@ org.osgi.enterprise provided - - org.ops4j.pax.web - pax-web-runtime - provided - org.ops4j.pax.web pax-web-spi diff --git a/adapters/oidc/osgi-adapter/pom.xml b/adapters/oidc/osgi-adapter/pom.xml index 91c32f1e17..c811211970 100755 --- a/adapters/oidc/osgi-adapter/pom.xml +++ b/adapters/oidc/osgi-adapter/pom.xml @@ -77,11 +77,6 @@ org.osgi.enterprise provided - - org.ops4j.pax.web - pax-web-runtime - provided - org.ops4j.pax.web pax-web-api diff --git a/distribution/adapters/osgi/features/src/main/resources/features.xml b/distribution/adapters/osgi/features/src/main/resources/features.xml index 42058ea67b..52611402c2 100755 --- a/distribution/adapters/osgi/features/src/main/resources/features.xml +++ b/distribution/adapters/osgi/features/src/main/resources/features.xml @@ -68,7 +68,8 @@
Keycloak Pax-Web adapter for Jetty 9.4
keycloak-adapter-core - keycloak-osgi-adapter + pax-web-core + mvn:org.keycloak/keycloak-osgi-adapter/${project.version} mvn:org.keycloak/keycloak-jetty-adapter-spi/${project.version} mvn:org.keycloak/keycloak-jetty-core/${project.version} mvn:org.keycloak/keycloak-jetty94-adapter/${project.version} @@ -79,8 +80,9 @@
Keycloak Pax-Web adapter for Undertow
- keycloak-osgi-adapter keycloak-adapter-core + pax-web-core + mvn:org.keycloak/keycloak-osgi-adapter/${project.version} mvn:org.keycloak/keycloak-undertow-adapter/${project.version} mvn:org.keycloak/keycloak-undertow-adapter-spi/${project.version} mvn:org.keycloak/keycloak-pax-web-undertow/${project.version} @@ -92,7 +94,8 @@
Keycloak Pax-Web adapter for Tomcat 8
keycloak-adapter-core - keycloak-osgi-adapter + pax-web-core + mvn:org.keycloak/keycloak-osgi-adapter/${project.version} mvn:org.keycloak/keycloak-tomcat-core-adapter/${project.version} mvn:org.keycloak/keycloak-tomcat-adapter-spi/${project.version} mvn:org.keycloak/keycloak-tomcat8-adapter/${project.version}