]> source.dussan.org Git - vaadin-framework.git/commitdiff
Small updates to servlet container test setup. (#12318)
authorZhe Sun <31067185+ZheSun88@users.noreply.github.com>
Mon, 31 May 2021 07:15:11 +0000 (10:15 +0300)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 07:15:11 +0000 (10:15 +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 0d4010beaa31b69416a9b6c2ac036df6fb95bcfa..670d0ca8d5f23552c2bcf7908cfc988c4f29027e 100644 (file)
@@ -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;
index efade777de6f4b720813ebafe8f5edc5372f2c36..1eb92f641510f47e89491ae9ee2fc92a99600b48 100644 (file)
                 <!-- 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 c0122a41a466cc699dd008b269ab5a30fa77227b..6951bafc7509af6b534471faa6f3cca376e75eb8 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 c9f45e4d634db2d3eb8fb55306a7af5822c17666..8cdea06fcb3ea2cd687d0d0e351f66ecfe9f0f5d 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 8fcf76066b71028682aa92cc62d65850cd44f7cd..90afc6271c3debae8dde5caacb0938eea78a5524 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 4b46dabf1bc5592af004f2aceb457f136eef70e2..a8a9892c20e65ed2b8eab11fb872f470f402da8b 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>