]> source.dussan.org Git - vaadin-framework.git/commitdiff
Small updates to servlet container test setup. (#12318) (#12447) 7.7.28
authorZhe Sun <31067185+ZheSun88@users.noreply.github.com>
Tue, 19 Oct 2021 13:56:38 +0000 (16:56 +0300)
committerGitHub <noreply@github.com>
Tue, 19 Oct 2021 13:56:38 +0000 (16:56 +0300)
* 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.

test/servlet-containers/generic-ui/src/main/java/com/vaadin/tests/integration/ServletIntegrationUI.java
test/servlet-containers/pom.xml
test/servlet-containers/tomcat7/pom.xml
test/servlet-containers/tomcat80/pom.xml
test/servlet-containers/tomcat85/pom.xml
test/servlet-containers/tomcat9/pom.xml

index de2b34bbe131a75f3f1ab27245234b489fb50f72..0d2c6feb24ba375391c3b47745376577b1f004b6 100644 (file)
@@ -1,5 +1,7 @@
 package com.vaadin.tests.integration;
 
+import java.io.Serializable;
+
 import com.vaadin.annotations.DesignRoot;
 import com.vaadin.annotations.Theme;
 import com.vaadin.annotations.Widgetset;
@@ -18,7 +20,7 @@ import java.util.Iterator;
 @Theme("valo")
 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;
index 4dd5460b7480f856e64584717d50659aac436ebb..d60f7c4abc78c320a309c081fad2661605fb80b8 100644 (file)
@@ -81,7 +81,8 @@
                 <!-- Generic cargo plugin configuration. Define container to use in submodule. -->
                 <plugin>
                     <groupId>org.codehaus.cargo</groupId>
-                    <artifactId>cargo-maven2-plugin</artifactId>
+                    <artifactId>cargo-maven3-plugin</artifactId>
+                    <version>1.9.4</version>
                     <configuration>
                         <configuration>
                             <type>standalone</type>
                     <groupId>org.eclipse.jetty</groupId>
                     <artifactId>jetty-maven-plugin</artifactId>
                     <configuration>
+                        <supportedPackagings>pom,jar,war</supportedPackagings>
                         <webApp>
                             <contextPath>${context.path}</contextPath>
                         </webApp>
index 4e4c57f34e712b6cfcd6b84ae2099ff558f5e272..c8d37d9a3d49cbacaabb74cb5a13b15bc8b2816b 100644 (file)
@@ -36,7 +36,7 @@
             <!-- Server configuration -->
             <plugin>
                 <groupId>org.codehaus.cargo</groupId>
-                <artifactId>cargo-maven2-plugin</artifactId>
+                <artifactId>cargo-maven3-plugin</artifactId>
                 <configuration>
                     <container>
                         <containerId>tomcat7x</containerId>
index c79fba6eb510462a011f104b47e6a6cfd1655f2e..6476e2677883b7a3419fd5d900723244db021e9e 100644 (file)
@@ -36,7 +36,7 @@
             <!-- Server configuration -->
             <plugin>
                 <groupId>org.codehaus.cargo</groupId>
-                <artifactId>cargo-maven2-plugin</artifactId>
+                <artifactId>cargo-maven3-plugin</artifactId>
                 <configuration>
                     <container>
                         <containerId>tomcat8x</containerId>
index 405de2a2554c307a46c57d44ff07da4822cdd37d..6e5775b9b910545d684c13d8d791e23bc3781016 100644 (file)
@@ -36,7 +36,7 @@
             <!-- Server configuration -->
             <plugin>
                 <groupId>org.codehaus.cargo</groupId>
-                <artifactId>cargo-maven2-plugin</artifactId>
+                <artifactId>cargo-maven3-plugin</artifactId>
                 <configuration>
                     <container>
                         <containerId>tomcat8x</containerId>
index 951353b76c3161eaaa848cca389ffd600156d56d..3eef42fe742a7b4ca215cedd78734565889e0d31 100644 (file)
@@ -36,7 +36,7 @@
             <!-- Server configuration -->
             <plugin>
                 <groupId>org.codehaus.cargo</groupId>
-                <artifactId>cargo-maven2-plugin</artifactId>
+                <artifactId>cargo-maven3-plugin</artifactId>
                 <configuration>
                     <container>
                         <containerId>tomcat9x</containerId>