]> source.dussan.org Git - vaadin-framework.git/commitdiff
Small updates to servlet container test setup. (#12318) (#12334)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Mon, 5 Jul 2021 08:47:28 +0000 (11:47 +0300)
committerGitHub <noreply@github.com>
Mon, 5 Jul 2021 08:47:28 +0000 (11:47 +0300)
* 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.

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 89e78e9277c9e675b7d373d43df7af0372e36861..500bf375cd2db45ee9380f44eaca588e020e59bd 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 28b2abee2262a80980e51e84a1e1cd617c669e7e..19d7f1397e39e5b10ff421ffaee5b8db32c1ad9d 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 d3ee9a476c8837c3c12ad3da1ad5c550e4c41c64..eb534f0c3fdb5275780452bf8199d1e1cdb9179f 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 e1a693a5097971afae81a4c55a636d75c56b1fc3..ac4a749251d1c280af9ae16915948fc8d0e2b559 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 fde7a4bbeea0dc35bce45effa0949d15260cae46..17dddaaa68b55a065f80de44f7920d79b9a80493 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>