From b707f5ece3c21d30d4e2831880d29e7704ecbbb8 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Sat, 24 Feb 2024 21:24:32 +0100 Subject: [PATCH] [Project] Updated to latest strolch versions with jakarta --- .../resources/archetype-resources/pom.xml | 2 +- .../__rootArtifactId__-plc-web/pom.xml | 54 +++++--- .../java/plc/web/web/RestfulApplication.java | 2 +- .../java/plc/web/web/StartupListener.java | 6 +- .../__rootArtifactId__-shared/pom.xml | 8 +- .../__rootArtifactId__-web/pom.xml | 46 +++++-- .../server/web/rest/ShopFloorResource.java | 10 +- .../server/web/web/RestfulApplication.java | 2 +- .../java/server/web/web/StartupListener.java | 6 +- .../resources/archetype-resources/pom.xml | 115 ++++++------------ .../resources/archetype-resources/pom.xml | 79 ++++++------ 11 files changed, 167 insertions(+), 163 deletions(-) diff --git a/strolch.mvn.archetype.main/src/main/resources/archetype-resources/pom.xml b/strolch.mvn.archetype.main/src/main/resources/archetype-resources/pom.xml index 5c7c28b..c654426 100644 --- a/strolch.mvn.archetype.main/src/main/resources/archetype-resources/pom.xml +++ b/strolch.mvn.archetype.main/src/main/resources/archetype-resources/pom.xml @@ -66,7 +66,7 @@ li.strolch - li.strolch.bom + strolch-bom pom ${strolch.version} import diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/pom.xml b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/pom.xml index eb54254..ac6990f 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/pom.xml +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/pom.xml @@ -38,46 +38,46 @@ li.strolch - li.strolch.model + model li.strolch - li.strolch.agent + agent li.strolch - li.strolch.rest + rest li.strolch - li.strolch.service + service li.strolch - li.strolch.testbase + test-base test li.strolch - li.strolch.persistence.xml + persistence.xml li.strolch - strolch-plc-core + plc-core li.strolch - strolch-plc-rest + plc-rest li.strolch - strolch-plc-gw-client + plc-gw-client li.strolch - strolch-plc-util + plc-util @@ -86,22 +86,38 @@ ${rootArtifactId}-shared - + - com.google.code.gson - gson + jakarta.annotation + jakarta.annotation-api - javax.servlet - javax.servlet-api + jakarta.activation + jakarta.activation-api - javax.websocket - javax.websocket-api + jakarta.servlet + jakarta.servlet-api - org.glassfish.jersey.bundles - jaxrs-ri + jakarta.xml.bind + jakarta.xml.bind-api + + + jakarta.ws.rs + jakarta.ws.rs-api + + + org.glassfish.jersey.containers + jersey-container-servlet + + + org.glassfish.jersey.containers + jersey-container-grizzly2-servlet + + + org.glassfish.jersey.inject + jersey-hk2 diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/RestfulApplication.java b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/RestfulApplication.java index 03b3ed9..87a8df5 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/RestfulApplication.java +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/RestfulApplication.java @@ -2,7 +2,7 @@ package ${package}.plc.web.web; import static ${package}.plc.web.web.StartupListener.APP_NAME; -import javax.ws.rs.ApplicationPath; +import jakarta.ws.rs.ApplicationPath; import java.util.logging.Level; import li.strolch.plc.rest.PlcConnectionsResource; diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/StartupListener.java b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/StartupListener.java index eb16526..737bfa7 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/StartupListener.java +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/java/plc/web/web/StartupListener.java @@ -2,9 +2,9 @@ package ${package}.plc.web.web; import static li.strolch.utils.helper.ExceptionHelper.hasCause; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; +import jakarta.servlet.ServletContextEvent; +import jakarta.servlet.ServletContextListener; +import jakarta.servlet.annotation.WebListener; import java.io.File; import java.io.InputStream; diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-shared/pom.xml b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-shared/pom.xml index 74ba52c..e62f966 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-shared/pom.xml +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-shared/pom.xml @@ -33,19 +33,19 @@ li.strolch - li.strolch.model + model li.strolch - li.strolch.agent + agent li.strolch - li.strolch.service + service li.strolch - strolch-plc-model + plc-model diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml index 48a0250..f053bf1 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml @@ -38,30 +38,30 @@ li.strolch - li.strolch.model + model li.strolch - li.strolch.agent + agent li.strolch - li.strolch.rest + web-rest li.strolch - li.strolch.service + service li.strolch - li.strolch.testbase + test-base test li.strolch - strolch-plc-gw-server + plc-gw-server @@ -70,18 +70,38 @@ ${rootArtifactId}-shared - + - javax.servlet - javax.servlet-api + jakarta.annotation + jakarta.annotation-api - javax.websocket - javax.websocket-api + jakarta.activation + jakarta.activation-api - org.glassfish.jersey.bundles - jaxrs-ri + jakarta.servlet + jakarta.servlet-api + + + jakarta.xml.bind + jakarta.xml.bind-api + + + jakarta.ws.rs + jakarta.ws.rs-api + + + org.glassfish.jersey.containers + jersey-container-servlet + + + org.glassfish.jersey.containers + jersey-container-grizzly2-servlet + + + org.glassfish.jersey.inject + jersey-hk2 diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/rest/ShopFloorResource.java b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/rest/ShopFloorResource.java index 993217b..a421b6f 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/rest/ShopFloorResource.java +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/rest/ShopFloorResource.java @@ -6,11 +6,11 @@ import static li.strolch.model.Tags.Json.DATA; import static li.strolch.plc.model.PlcConstants.PARAM_PLC_ID; import static li.strolch.rest.StrolchRestfulConstants.STROLCH_CERTIFICATE; -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.*; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import ${package}.server.web.service.ShopFloorActionService; import com.google.gson.JsonObject; diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/RestfulApplication.java b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/RestfulApplication.java index b3fc140..6f31687 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/RestfulApplication.java +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/RestfulApplication.java @@ -2,7 +2,7 @@ package ${package}.server.web.web; import static ${package}.server.web.web.StartupListener.APP_NAME; -import javax.ws.rs.ApplicationPath; +import jakarta.ws.rs.ApplicationPath; import java.util.logging.Level; import ${package}.server.web.rest.ShopFloorResource; diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/StartupListener.java b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/StartupListener.java index b791028..e8312fd 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/StartupListener.java +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/java/server/web/web/StartupListener.java @@ -1,8 +1,8 @@ package ${package}.server.web.web; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; +import jakarta.servlet.ServletContextEvent; +import jakarta.servlet.ServletContextListener; +import jakarta.servlet.annotation.WebListener; import java.io.InputStream; import li.strolch.agent.api.LoggingLoader; diff --git a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/pom.xml b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/pom.xml index 7678da3..a07048c 100644 --- a/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/pom.xml +++ b/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/pom.xml @@ -29,30 +29,24 @@ 2.0.5 1.4.14 - 3.1.2 2.10 5.0.1 - 42.4.1 + 42.5.1 4.9.3 - 1.3.2 - 1.1.1 1.6.2 - 4.0.1 - 2.1.1 - 2.35 - 2.3.1 - 2.3.0.1 - 2.3.3 - 2.3.3 - 2.1.0 - 1.4.2 - 1.17 - 2.4.4 - 1.1 - 2.0.1 1.9.0 1.6.2 + 4.0.0 + 2.1.1 + 2.1.0 + 4.0.0 + 3.1.0 + 6.0.0 + 2.1.0 + 3.1.2 + 4.3.0-jakarta + 3.19.0 1.4 @@ -131,7 +125,7 @@ li.strolch - li.strolch.bom + strolch-bom pom ${strolch.version} import @@ -140,98 +134,47 @@ li.strolch - strolch-plc-model + plc-model ${strolch-plc.version} li.strolch - strolch-plc-core + plc-core ${strolch-plc.version} li.strolch - strolch-plc-rest + plc-rest ${strolch-plc.version} li.strolch - strolch-plc-gw-server + plc-gw-server ${strolch-plc.version} li.strolch - strolch-plc-gw-client + plc-gw-client ${strolch-plc.version} li.strolch - strolch-plc-util + plc-util ${strolch-plc.version} - - - com.google.code.gson - gson - ${gson.version} - - - com.sun.xml.bind - jaxb-core - ${jaxb.core.version} - - - com.sun.xml.bind - jaxb-impl - ${jaxb.impl.version} - + javax.xml.bind jaxb-api ${jaxb.api.version} - - javax.xml - jaxp-api - ${jaxp.version} - javax.servlet javax.servlet-api ${serverlet.version} provided - - jakarta.xml.ws - jakarta.xml.ws-api - ${jaxws.version} - - - jakarta.jws - jakarta.jws-api - ${jakarta.jws-api.version} - - - com.sun.xml.ws - jaxws-rt - ${jaxws.version} - runtime - - - com.fasterxml.woodstox - woodstox-core - - - org.codehaus.woodstox - stax2-api - - - org.eclipse.angus - angus-activation - - - - javax.ws.rs javax.ws.rs-api @@ -249,6 +192,26 @@ pom import + + org.glassfish.tyrus + tyrus-client + ${tyrus.version} + + + org.glassfish.tyrus + tyrus-container-grizzly-client + ${tyrus.version} + + + org.glassfish.tyrus + tyrus-container-grizzly-server + ${tyrus.version} + + + org.glassfish.grizzly + grizzly-framework + ${grizzly.version} + diff --git a/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/pom.xml b/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/pom.xml index 290a5c8..11d415f 100644 --- a/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/pom.xml +++ b/strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/pom.xml @@ -30,35 +30,32 @@ 2.0.5 1.4.14 - 3.1.2 2.10 5.0.1 - 42.4.1 + 42.5.1 4.9.3 - 1.3.2 - 1.1.1 1.6.2 - 4.0.1 - 2.1.1 - 2.35 - 2.3.1 - 2.3.3 - 2.1.0 - 1.4.2 - 1.17 - 2.4.4 - 1.1 - 2.0.1 1.9.0 1.6.2 + 4.0.0 + 2.1.1 + 2.1.0 + 4.0.0 + 3.1.0 + 6.0.0 + 2.1.0 + 3.1.2 + 4.3.0-jakarta + + 3.19.0 + + 2.2.3 + 4.13.2 2.2 - - 2.2.3 - 1.12.2 3.0.0 @@ -88,7 +85,7 @@ li.strolch - li.strolch.bom + strolch-bom pom ${strolch.version} import @@ -212,50 +209,58 @@ li.strolch - li.strolch.model + model li.strolch - li.strolch.agent + agent li.strolch - li.strolch.rest + web-rest li.strolch - li.strolch.service + service li.strolch - li.strolch.testbase + test-base test - + - javax.servlet - javax.servlet-api + jakarta.annotation + jakarta.annotation-api - javax.websocket - javax.websocket-api + jakarta.activation + jakarta.activation-api - org.glassfish.jersey.bundles - jaxrs-ri + jakarta.servlet + jakarta.servlet-api - org.glassfish.tyrus - tyrus-client + jakarta.xml.bind + jakarta.xml.bind-api - org.glassfish.tyrus - tyrus-container-grizzly-client + jakarta.ws.rs + jakarta.ws.rs-api - org.glassfish.grizzly - grizzly-framework + org.glassfish.jersey.containers + jersey-container-servlet + + + org.glassfish.jersey.containers + jersey-container-grizzly2-servlet + + + org.glassfish.jersey.inject + jersey-hk2