From 8b2f64da736a7341aba62328a07d0ea65cd6b727 Mon Sep 17 00:00:00 2001 From: Mark Struberg Date: Mon, 13 Nov 2023 20:01:43 +0100 Subject: [PATCH] enable TomEE 10 profile --- deltaspike/cdictrl/impl-openejb/pom.xml | 66 ++++++++++++++---- .../cdise/owb/OpenWebBeansContextControl.java | 2 +- deltaspike/cdictrl/pom.xml | 6 +- deltaspike/dist/full/pom.xml | 3 - deltaspike/examples/jsf-examples/pom.xml | 14 ++-- deltaspike/examples/jsf-playground/pom.xml | 2 +- .../pom.xml | 2 +- deltaspike/modules/jsf/impl/pom.xml | 12 +++- deltaspike/parent/code/pom.xml | 5 +- deltaspike/parent/pom.xml | 68 ++----------------- 10 files changed, 82 insertions(+), 98 deletions(-) diff --git a/deltaspike/cdictrl/impl-openejb/pom.xml b/deltaspike/cdictrl/impl-openejb/pom.xml index 33967a8f0..5ac270af8 100644 --- a/deltaspike/cdictrl/impl-openejb/pom.xml +++ b/deltaspike/cdictrl/impl-openejb/pom.xml @@ -90,42 +90,78 @@ - OpenEJB-Legacy + default true - org.apache.openejb + org.apache.tomee openejb-core ${openejb.version} provided - - - - - tomee7-build-managed - - org.apache.tomee - openejb-core - ${openejb.version} - provided + jakarta.xml.bind + jakarta.xml.bind-api + 3.0.1 + + + jakarta.activation + jakarta.activation-api + + + + org.glassfish.jaxb + jaxb-runtime + 3.0.2 + runtime + + + jakarta.activation + jakarta.activation-api + + + + + - - tomee8-build-managed + tomee10-build-managed org.apache.tomee openejb-core - ${openejb.version} + ${tomee10.version} provided + + + jakarta.xml.bind + jakarta.xml.bind-api + 3.0.1 + + + jakarta.activation + jakarta.activation-api + + + + + org.glassfish.jaxb + jaxb-runtime + 3.0.2 + runtime + + + jakarta.activation + jakarta.activation-api + + + diff --git a/deltaspike/cdictrl/impl-owb/src/main/java/org/apache/deltaspike/cdise/owb/OpenWebBeansContextControl.java b/deltaspike/cdictrl/impl-owb/src/main/java/org/apache/deltaspike/cdise/owb/OpenWebBeansContextControl.java index bb6e6a30a..7ee7ae174 100644 --- a/deltaspike/cdictrl/impl-owb/src/main/java/org/apache/deltaspike/cdise/owb/OpenWebBeansContextControl.java +++ b/deltaspike/cdictrl/impl-owb/src/main/java/org/apache/deltaspike/cdise/owb/OpenWebBeansContextControl.java @@ -113,7 +113,7 @@ static boolean isServletApiAvailable() { try { - Class servletClass = Class.forName("javax.servlet.http.HttpSession"); + Class servletClass = Class.forName("jakarta.servlet.http.HttpSession"); return servletClass != null; } catch (ClassNotFoundException e) diff --git a/deltaspike/cdictrl/pom.xml b/deltaspike/cdictrl/pom.xml index 999179d2f..41484a233 100644 --- a/deltaspike/cdictrl/pom.xml +++ b/deltaspike/cdictrl/pom.xml @@ -22,9 +22,9 @@ org.apache.deltaspike - parent-code + parent 2.0.0-SNAPSHOT - ../parent/code/pom.xml + ../parent/pom.xml org.apache.deltaspike.cdictrl @@ -44,9 +44,7 @@ api impl-owb impl-weld - tck diff --git a/deltaspike/dist/full/pom.xml b/deltaspike/dist/full/pom.xml index 7f8ae6ace..6295f6c3c 100644 --- a/deltaspike/dist/full/pom.xml +++ b/deltaspike/dist/full/pom.xml @@ -120,8 +120,6 @@ ${project.version} runtime - org.apache.deltaspike.modules diff --git a/deltaspike/examples/jsf-examples/pom.xml b/deltaspike/examples/jsf-examples/pom.xml index 0e6c2b46c..666f860c1 100644 --- a/deltaspike/examples/jsf-examples/pom.xml +++ b/deltaspike/examples/jsf-examples/pom.xml @@ -70,7 +70,7 @@ - org.apache.openejb.maven + org.apache.tomee.maven tomee-maven-plugin 1.0.1 @@ -86,12 +86,12 @@ - - org.apache.openejb - javaee-api - 6.0-5 - provided - + + org.apache.tomee + javaee-api + 6.0-5 + provided + org.apache.myfaces.core myfaces-api diff --git a/deltaspike/examples/jsf-playground/pom.xml b/deltaspike/examples/jsf-playground/pom.xml index e37406f02..5d7121b88 100644 --- a/deltaspike/examples/jsf-playground/pom.xml +++ b/deltaspike/examples/jsf-playground/pom.xml @@ -92,7 +92,7 @@ - org.apache.openejb.maven + org.apache.tomee.maven tomee-maven-plugin 1.0.1 diff --git a/deltaspike/examples/security-requested-page-after-login-picketlink/pom.xml b/deltaspike/examples/security-requested-page-after-login-picketlink/pom.xml index 0607aa143..758b03481 100644 --- a/deltaspike/examples/security-requested-page-after-login-picketlink/pom.xml +++ b/deltaspike/examples/security-requested-page-after-login-picketlink/pom.xml @@ -115,7 +115,7 @@ - org.apache.openejb + org.apache.tomee javaee-api 6.0-6 diff --git a/deltaspike/modules/jsf/impl/pom.xml b/deltaspike/modules/jsf/impl/pom.xml index 1f27535c7..37988c907 100644 --- a/deltaspike/modules/jsf/impl/pom.xml +++ b/deltaspike/modules/jsf/impl/pom.xml @@ -176,7 +176,7 @@ - tomee8-build-managed + tomee10-build-managed + + org.apache.myfaces.core + myfaces-impl + ${myfaces.version} + test + + + diff --git a/deltaspike/parent/code/pom.xml b/deltaspike/parent/code/pom.xml index 68bfe3d19..a34ec5f93 100644 --- a/deltaspike/parent/code/pom.xml +++ b/deltaspike/parent/code/pom.xml @@ -526,8 +526,8 @@ tomee10-build-managed - 10.0.0-M1-SNAPSHOT - ${tomee.version} + ${tomee10.version} + ${tomee10.version} 10.0-SNAPSHOT 4.0.1-SNAPSHOT tomee-${tomee.version} @@ -594,6 +594,7 @@ + - 4.7.5 - 9.0.0.RC1 + 9.1.1 + 10.0.0-M1-SNAPSHOT + ${tomee10.version} + ${owb.version} 4.13.2 - 1.7.0.Alpha13 + 1.7.1.Final 4.0.1 @@ -481,66 +483,6 @@ 1.2.2 - org.mockito mockito-all