diff --git a/extension/eclipse-epicyro/pom.xml b/extension/eclipse-epicyro/pom.xml index 263235cfd..47ca77540 100644 --- a/extension/eclipse-epicyro/pom.xml +++ b/extension/eclipse-epicyro/pom.xml @@ -2,18 +2,14 @@ 4.0.0 - cloud.piranha.extension project 24.2.0-SNAPSHOT - piranha-extension-eclipse-epicyro jar - Piranha - Extension - Eclipse Epicyro - diff --git a/extension/eclipse-exousia/pom.xml b/extension/eclipse-exousia/pom.xml index ebf5b1ab3..8c827a8a3 100644 --- a/extension/eclipse-exousia/pom.xml +++ b/extension/eclipse-exousia/pom.xml @@ -2,18 +2,14 @@ 4.0.0 - cloud.piranha.extension project 24.2.0-SNAPSHOT - piranha-extension-eclipse-exousia jar - Piranha - Extension - Eclipse Exousia - diff --git a/extension/eclipse-mojarra/pom.xml b/extension/eclipse-mojarra/pom.xml new file mode 100644 index 000000000..d0821b1a6 --- /dev/null +++ b/extension/eclipse-mojarra/pom.xml @@ -0,0 +1,33 @@ + + + + 4.0.0 + + cloud.piranha.extension + project + 24.2.0-SNAPSHOT + + piranha-extension-eclipse-mojarra + jar + Piranha - Extension - Eclipse Mojarra + + + cloud.piranha.core + piranha-core-api + ${project.version} + compile + + + cloud.piranha.extension + piranha-extension-scinitializer + ${project.version} + compile + + + + org.glassfish + jakarta.faces + compile + + + diff --git a/extension/eclipse-mojarra/src/main/java/cloud/piranha/extension/mojarra/MojarraExtension.java b/extension/eclipse-mojarra/src/main/java/cloud/piranha/extension/mojarra/MojarraExtension.java new file mode 100644 index 000000000..26b39f705 --- /dev/null +++ b/extension/eclipse-mojarra/src/main/java/cloud/piranha/extension/mojarra/MojarraExtension.java @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2002-2024 Manorrock.com. All Rights Reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +package cloud.piranha.extension.mojarra; + +import cloud.piranha.core.api.WebApplication; +import cloud.piranha.core.api.WebApplicationExtension; +import java.lang.System.Logger; +import static java.lang.System.Logger.Level.TRACE; + +/** + * The extension that delivers Eclipse Mojarra to Piranha. + * + * @author Manfred Riem (mriem@manorrock.com) + */ +public class MojarraExtension implements WebApplicationExtension { + + /** + * Stores the logger. + */ + private static final Logger LOGGER = System.getLogger(MojarraExtension.class.getName()); + + /** + * Configure the extension. + * + * @param webApplication the web application. + */ + @Override + public void configure(WebApplication webApplication) { + LOGGER.log(TRACE, "Configuring Mojarra extension"); + } +} diff --git a/extension/eclipse-mojarra/src/main/java/module-info.java b/extension/eclipse-mojarra/src/main/java/module-info.java new file mode 100644 index 000000000..62a6e26ca --- /dev/null +++ b/extension/eclipse-mojarra/src/main/java/module-info.java @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2002-2024 Manorrock.com. All Rights Reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/** + * This module delivers the Eclipse Mojarra integration extension. + * + *

+ * This extension integrates Eclipse Mojarra into Piranha. See + * https://github.com/eclipse-ee4j/mojarra for more information about its + * project. + *

+ * + * @author Manfred Riem (mriem@manorrock.com) + */ +module cloud.piranha.extension.mojarra { + + requires cloud.piranha.core.api; + requires cloud.piranha.extension.scinitializer; +} diff --git a/extension/eclipse-soteria/pom.xml b/extension/eclipse-soteria/pom.xml index 9a53eae34..106163648 100644 --- a/extension/eclipse-soteria/pom.xml +++ b/extension/eclipse-soteria/pom.xml @@ -2,18 +2,14 @@ 4.0.0 - cloud.piranha.extension project 24.2.0-SNAPSHOT - piranha-extension-eclipse-soteria jar - Piranha - Extension - Eclipse Soteria - diff --git a/extension/micro/pom.xml b/extension/micro/pom.xml index 012cc1933..03b27d091 100644 --- a/extension/micro/pom.xml +++ b/extension/micro/pom.xml @@ -39,6 +39,11 @@ piranha-extension-eclipse-expressly ${project.version} + + cloud.piranha.extension + piranha-extension-eclipse-mojarra + ${project.version} + cloud.piranha.extension piranha-extension-eclipse-soteria @@ -226,13 +231,6 @@ angus-activation - - - - org.glassfish - jakarta.faces - runtime - diff --git a/extension/pom.xml b/extension/pom.xml index fcfdc1b06..5704f5f57 100644 --- a/extension/pom.xml +++ b/extension/pom.xml @@ -25,6 +25,7 @@ eclipse-epicyro eclipse-exousia eclipse-expressly + eclipse-mojarra eclipse-soteria eclipse-wasp eclipselink diff --git a/extension/webprofile/pom.xml b/extension/webprofile/pom.xml index 8470136f9..5e56f1db3 100644 --- a/extension/webprofile/pom.xml +++ b/extension/webprofile/pom.xml @@ -56,6 +56,12 @@ ${project.version} compile + + cloud.piranha.extension + piranha-extension-eclipse-mojarra + ${project.version} + compile + cloud.piranha.extension piranha-extension-eclipse-wasp @@ -134,11 +140,6 @@ jakarta.annotation-api runtime - - org.glassfish - jakarta.faces - runtime - org.glassfish.jersey.containers jersey-container-servlet diff --git a/test/debug/pom.xml b/test/debug/pom.xml index 4a7ead197..09be49e75 100644 --- a/test/debug/pom.xml +++ b/test/debug/pom.xml @@ -81,6 +81,11 @@ piranha-extension-eclipse-expressly ${project.version} + + cloud.piranha.extension + piranha-extension-eclipse-mojarra + ${project.version} + cloud.piranha.extension piranha-extension-eclipse-soteria @@ -462,40 +467,18 @@ jakarta.servlet.jsp.jstl - - - org.glassfish - jakarta.faces - - org.eclipse.parsson parsson - - - org.glassfish.soteria - soteria.spi.bean.decorator.weld - - - org.glassfish.soteria - jakarta.security.enterprise - - org.glassfish.tyrus tyrus-container-servlet - - - org.glassfish.wasp - wasp - - org.eclipse diff --git a/test/embedded/eclipselink/pom.xml b/test/embedded/eclipselink/pom.xml index 6a426cc0c..e077f8e89 100644 --- a/test/embedded/eclipselink/pom.xml +++ b/test/embedded/eclipselink/pom.xml @@ -48,6 +48,24 @@ ${project.version} test + + cloud.piranha.extension + piranha-extension-eclipse-expressly + ${project.version} + test + + + cloud.piranha.extension + piranha-extension-eclipse-mojarra + ${project.version} + test + + + cloud.piranha.extension + piranha-extension-eclipse-wasp + ${project.version} + test + cloud.piranha.extension piranha-extension-naming @@ -96,21 +114,6 @@ org.eclipse.persistence org.eclipse.persistence.json - - org.glassfish - jakarta.faces - test - - - org.glassfish.expressly - expressly - test - - - org.glassfish.wasp - wasp - test - org.junit.jupiter junit-jupiter-api diff --git a/test/embedded/hazelcast/pom.xml b/test/embedded/hazelcast/pom.xml index 1d3a63b64..7a802bf6d 100644 --- a/test/embedded/hazelcast/pom.xml +++ b/test/embedded/hazelcast/pom.xml @@ -31,6 +31,24 @@ ${project.version} test + + cloud.piranha.extension + piranha-extension-eclipse-expressly + ${project.version} + test + + + cloud.piranha.extension + piranha-extension-eclipse-mojarra + ${project.version} + test + + + cloud.piranha.extension + piranha-extension-eclipse-wasp + ${project.version} + test + cloud.piranha.extension piranha-extension-hazelcast @@ -76,21 +94,6 @@ junit-jupiter-api test - - org.glassfish - jakarta.faces - test - - - org.glassfish.expressly - expressly - test - - - org.glassfish.wasp - wasp - test - org.glassfish.web jakarta.servlet.jsp.jstl diff --git a/test/embedded/weld/pom.xml b/test/embedded/weld/pom.xml index 50e456c2c..3d8336612 100644 --- a/test/embedded/weld/pom.xml +++ b/test/embedded/weld/pom.xml @@ -25,25 +25,26 @@ cloud.piranha.extension - piranha-extension-scinitializer + piranha-extension-eclipse-mojarra ${project.version} runtime cloud.piranha.extension - piranha-extension-redhat-weld + piranha-extension-scinitializer ${project.version} runtime cloud.piranha.extension - piranha-extension-webxml + piranha-extension-redhat-weld ${project.version} runtime - org.glassfish - jakarta.faces + cloud.piranha.extension + piranha-extension-webxml + ${project.version} runtime @@ -53,6 +54,18 @@ ${project.version} test
+ + cloud.piranha.extension + piranha-extension-eclipse-expressly + ${project.version} + test + + + cloud.piranha.extension + piranha-extension-eclipse-wasp + ${project.version} + test + cloud.piranha.extension piranha-extension-naming @@ -74,21 +87,11 @@ junit-jupiter-api test - - org.glassfish.wasp - wasp - test - org.glassfish.web jakarta.servlet.jsp.jstl test - - org.glassfish.expressly - expressly - test -