From: Zhe Sun <31067185+ZheSun88@users.noreply.github.com> Date: Mon, 31 May 2021 07:15:11 +0000 (+0300) Subject: Small updates to servlet container test setup. (#12318) X-Git-Tag: 8.14.0.alpha1~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45e7afb51c8e5610c363b2afe73cc43381431f1c;p=vaadin-framework.git Small updates to servlet container test setup. (#12318) * Small updates to servlet container test setup. - Upgraded to use cargo-maven3-plugin since cargo-maven2-plugin is now EOL. - Defined supported packagings as the current jetty-maven-plugin default only covers war. - Changed a test pojo to implement Serializable in order to prevent an error in cargo-maven3-plugin stop-container phase. --- diff --git a/test/servlet-containers/generic-ui/src/main/java/com/vaadin/tests/integration/ServletIntegrationUI.java b/test/servlet-containers/generic-ui/src/main/java/com/vaadin/tests/integration/ServletIntegrationUI.java index 0d4010beaa..670d0ca8d5 100644 --- a/test/servlet-containers/generic-ui/src/main/java/com/vaadin/tests/integration/ServletIntegrationUI.java +++ b/test/servlet-containers/generic-ui/src/main/java/com/vaadin/tests/integration/ServletIntegrationUI.java @@ -1,5 +1,7 @@ package com.vaadin.tests.integration; +import java.io.Serializable; + import com.vaadin.annotations.DesignRoot; import com.vaadin.annotations.Widgetset; import com.vaadin.server.ClassResource; @@ -15,7 +17,7 @@ import com.vaadin.ui.declarative.Design; @Widgetset("com.vaadin.DefaultWidgetSet") public class ServletIntegrationUI extends UI { - public static class Country { + public static class Country implements Serializable { private final String name; private final String id; private final Resource icon; diff --git a/test/servlet-containers/pom.xml b/test/servlet-containers/pom.xml index efade777de..1eb92f6415 100644 --- a/test/servlet-containers/pom.xml +++ b/test/servlet-containers/pom.xml @@ -110,7 +110,8 @@ org.codehaus.cargo - cargo-maven2-plugin + cargo-maven3-plugin + 1.9.4 standalone @@ -194,6 +195,7 @@ org.eclipse.jetty jetty-maven-plugin + pom,jar,war ${context.path} diff --git a/test/servlet-containers/tomcat7/pom.xml b/test/servlet-containers/tomcat7/pom.xml index c0122a41a4..6951bafc75 100644 --- a/test/servlet-containers/tomcat7/pom.xml +++ b/test/servlet-containers/tomcat7/pom.xml @@ -36,7 +36,7 @@ org.codehaus.cargo - cargo-maven2-plugin + cargo-maven3-plugin tomcat7x diff --git a/test/servlet-containers/tomcat80/pom.xml b/test/servlet-containers/tomcat80/pom.xml index c9f45e4d63..8cdea06fcb 100644 --- a/test/servlet-containers/tomcat80/pom.xml +++ b/test/servlet-containers/tomcat80/pom.xml @@ -36,7 +36,7 @@ org.codehaus.cargo - cargo-maven2-plugin + cargo-maven3-plugin tomcat8x diff --git a/test/servlet-containers/tomcat85/pom.xml b/test/servlet-containers/tomcat85/pom.xml index 8fcf76066b..90afc6271c 100644 --- a/test/servlet-containers/tomcat85/pom.xml +++ b/test/servlet-containers/tomcat85/pom.xml @@ -36,7 +36,7 @@ org.codehaus.cargo - cargo-maven2-plugin + cargo-maven3-plugin tomcat8x diff --git a/test/servlet-containers/tomcat9/pom.xml b/test/servlet-containers/tomcat9/pom.xml index 4b46dabf1b..a8a9892c20 100644 --- a/test/servlet-containers/tomcat9/pom.xml +++ b/test/servlet-containers/tomcat9/pom.xml @@ -36,7 +36,7 @@ org.codehaus.cargo - cargo-maven2-plugin + cargo-maven3-plugin tomcat9x