You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by ku...@apache.org on 2023/08/18 12:19:19 UTC

[struts] branch WW-5334-fix-cyclic created (now 61856cf59)

This is an automated email from the ASF dual-hosted git repository.

kusal pushed a change to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git


      at 61856cf59 WW-5334 Add struts2-junit-plugin as test scope to struts2-velocity-plugin

This branch includes the following new commits:

     new c45213700 WW-5334 Correct struts2-xslt-plugin pom
     new a650f3bfc WW-5334 Plugins don't need to include core as compile scope
     new cfce5b2e0 WW-5334 Include Mockito as test dependency for all plugins
     new 9992e39b4 WW-5334 Fix Portlet plugin dependency scopes
     new 7da2def47 WW-5334 Fix Junit module README
     new 110ef71eb WW-5334 Remove unnecessary Mockito exclusion
     new d47538c7d WW-5334 Extract Portlet test case into own module
     new 19eb1baba WW-5334 Remove redundant declaration of javax.servlet-api
     new 05cfe51d5 WW-5334 Extract javax.servlet-api into parent POM
     new 61856cf59 WW-5334 Add struts2-junit-plugin as test scope to struts2-velocity-plugin

The 10 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[struts] 07/10: WW-5334 Extract Portlet test case into own module

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit d47538c7db3f9b9d8aa0e6da3bb6f545113af05e
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 22:07:03 2023 +1000

    WW-5334 Extract Portlet test case into own module
---
 plugins/junit/pom.xml                              | 20 --------
 plugins/pom.xml                                    |  1 +
 plugins/portlet-junit/README.md                    |  5 ++
 plugins/{junit => portlet-junit}/pom.xml           | 43 ++---------------
 .../struts2/junit/StrutsPortletTestCase.java       | 15 +-----
 plugins/portlet-junit/src/site/site.xml            | 56 ++++++++++++++++++++++
 plugins/portlet/pom.xml                            |  1 -
 7 files changed, 67 insertions(+), 74 deletions(-)

diff --git a/plugins/junit/pom.xml b/plugins/junit/pom.xml
index 1aec449fc..e72b5bd78 100644
--- a/plugins/junit/pom.xml
+++ b/plugins/junit/pom.xml
@@ -65,26 +65,6 @@
             <artifactId>struts2-convention-plugin</artifactId>
             <scope>test</scope>
         </dependency>
-
-        <!-- Portlet -->
-        <dependency>
-            <groupId>javax.portlet</groupId>
-            <artifactId>portlet-api</artifactId>
-            <scope>compile</scope>
-            <optional>true</optional>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.struts</groupId>
-            <artifactId>struts2-portlet-plugin</artifactId>
-            <optional>true</optional>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.struts</groupId>
-            <artifactId>struts2-portlet-mocks-plugin</artifactId>
-            <optional>true</optional>
-        </dependency>
     </dependencies>
 
     <properties>
diff --git a/plugins/pom.xml b/plugins/pom.xml
index 6ee8c4ba0..b931eeec6 100644
--- a/plugins/pom.xml
+++ b/plugins/pom.xml
@@ -50,6 +50,7 @@
         <module>pell-multipart</module>
         <module>plexus</module>
         <module>portlet</module>
+        <module>portlet-junit</module>
         <module>portlet-mocks</module>
         <module>portlet-tiles</module>
         <module>rest</module>
diff --git a/plugins/portlet-junit/README.md b/plugins/portlet-junit/README.md
new file mode 100644
index 000000000..afb10b76a
--- /dev/null
+++ b/plugins/portlet-junit/README.md
@@ -0,0 +1,5 @@
+# Struts 2 Portlet JUnit plugin
+The Portlet JUnit Plugin supports testing applications that use the Portlet Plugin.
+
+## Installation
+Just drop this plugin JAR into `WEB-INF/lib` folder or add it as a Maven dependency.
diff --git a/plugins/junit/pom.xml b/plugins/portlet-junit/pom.xml
similarity index 60%
copy from plugins/junit/pom.xml
copy to plugins/portlet-junit/pom.xml
index 1aec449fc..8f0a9e93c 100644
--- a/plugins/junit/pom.xml
+++ b/plugins/portlet-junit/pom.xml
@@ -27,63 +27,28 @@
         <version>6.3.0-SNAPSHOT</version>
     </parent>
 
-    <artifactId>struts2-junit-plugin</artifactId>
+    <artifactId>struts2-portlet-junit-plugin</artifactId>
     <packaging>jar</packaging>
-    <name>Struts 2 JUnit Plugin</name>
+    <name>DEPRECATED: Struts 2 Portlet JUnit Plugin - since 6.4.0</name>
 
     <dependencies>
-        <dependency>
-            <groupId>org.springframework</groupId>
-            <artifactId>spring-test</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework</groupId>
-            <artifactId>spring-core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.springframework</groupId>
-            <artifactId>spring-context</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.apache.struts</groupId>
-            <artifactId>struts2-spring-plugin</artifactId>
-            <optional>true</optional>
-        </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
+            <artifactId>struts2-junit-plugin</artifactId>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
         </dependency>
 
-        <!-- Convention Plugin tests -->
-        <dependency>
-            <groupId>org.apache.struts</groupId>
-            <artifactId>struts2-convention-plugin</artifactId>
-            <scope>test</scope>
-        </dependency>
-
-        <!-- Portlet -->
-        <dependency>
-            <groupId>javax.portlet</groupId>
-            <artifactId>portlet-api</artifactId>
-            <scope>compile</scope>
-            <optional>true</optional>
-        </dependency>
-
         <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-portlet-plugin</artifactId>
-            <optional>true</optional>
+            <scope>provided</scope>
         </dependency>
-
         <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-portlet-mocks-plugin</artifactId>
-            <optional>true</optional>
         </dependency>
     </dependencies>
 
diff --git a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsPortletTestCase.java b/plugins/portlet-junit/src/main/java/org/apache/struts2/junit/StrutsPortletTestCase.java
similarity index 82%
rename from plugins/junit/src/main/java/org/apache/struts2/junit/StrutsPortletTestCase.java
rename to plugins/portlet-junit/src/main/java/org/apache/struts2/junit/StrutsPortletTestCase.java
index de7d8da91..ad6fbeefa 100644
--- a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsPortletTestCase.java
+++ b/plugins/portlet-junit/src/main/java/org/apache/struts2/junit/StrutsPortletTestCase.java
@@ -35,19 +35,6 @@ import javax.portlet.PortletMode;
 import java.util.HashMap;
 import java.util.Map;
 
-/*
- * Changes:  This is a copy of org.apache.struts2.StrutsPortletTestCase from the Struts 2 portlet-plugin, moved
- *           into the junit-plugin (same package org.apache.struts2).
- *           The import order above was changed to alphabetical.
- *
- * Note:     The assumption is that anyone utilizing StrutsPortletTestCase currently from the portlet-plugin will almost
- *           certainly be using the junit-plugin.  Under that assumption, the refactored-move of StrutsPortletTestCase
- *           should not cause issues for pre-existing usage of StrutsPortletTestCase.
- */
-
-/**
- * Base class used to test action in portlet environment
- */
 public abstract class StrutsPortletTestCase extends StrutsTestCase {
 
     private static final Logger LOG = LogManager.getLogger(StrutsPortletTestCase.class);
@@ -95,7 +82,7 @@ public abstract class StrutsPortletTestCase extends StrutsTestCase {
      * @return Map with session parameters
      */
     private Map<String, Object> createSession() {
-        return new HashMap<String, Object>(portletRequest.getPortletSession().getAttributeMap());
+        return new HashMap<>(portletRequest.getPortletSession().getAttributeMap());
     }
 
 }
diff --git a/plugins/portlet-junit/src/site/site.xml b/plugins/portlet-junit/src/site/site.xml
new file mode 100644
index 000000000..54fdcf4f4
--- /dev/null
+++ b/plugins/portlet-junit/src/site/site.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+-->
+<project name="Apache Struts">
+    <skin>
+        <groupId>org.apache.maven.skins</groupId>
+        <artifactId>maven-fluido-skin</artifactId>
+        <version>${fluido-skin.version}</version>
+    </skin>
+    <bannerLeft>
+        <name>Apache Software Foundation</name>
+        <src>http://www.apache.org/images/asf-logo.gif</src>
+        <href>http://www.apache.org/</href>
+    </bannerLeft>
+    <bannerRight>
+        <name>Apache Struts</name>
+        <src>http://struts.apache.org/img/struts-logo.svg</src>
+        <href>http://struts.apache.org/</href>
+    </bannerRight>
+    <publishDate position="left"/>
+    <version position="right"/>
+    <body>
+        <links>
+            <item name="Apache" href="http://www.apache.org/"/>
+            <item name="Struts" href="http://struts.apache.org/"/>
+        </links>
+
+        <menu ref="parent"/>
+        <menu ref="reports"/>
+
+        <footer>
+            <![CDATA[<div class="row span12">
+            Apache Struts, Struts, Apache, the Apache feather logo, and the Apache Struts project
+            logos are trademarks of The Apache Software Foundation.
+            </div>]]>
+        </footer>
+    </body>
+</project>
diff --git a/plugins/portlet/pom.xml b/plugins/portlet/pom.xml
index 025daa863..64e7066e0 100644
--- a/plugins/portlet/pom.xml
+++ b/plugins/portlet/pom.xml
@@ -66,7 +66,6 @@
         <dependency>
             <groupId>javax.portlet</groupId>
             <artifactId>portlet-api</artifactId>
-            <scope>provided</scope>
         </dependency>
 
         <dependency>


[struts] 08/10: WW-5334 Remove redundant declaration of javax.servlet-api

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 19eb1babaa25a532370bb6f2150b127ab8568cc6
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 22:11:58 2023 +1000

    WW-5334 Remove redundant declaration of javax.servlet-api
---
 plugins/velocity/pom.xml | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/plugins/velocity/pom.xml b/plugins/velocity/pom.xml
index 09fc32d3c..bcd05f32c 100644
--- a/plugins/velocity/pom.xml
+++ b/plugins/velocity/pom.xml
@@ -49,11 +49,6 @@
             <artifactId>velocity-tools-view-jsp</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>javax.servlet-api</artifactId>
-        </dependency>
-
         <dependency>
             <groupId>javax.servlet.jsp</groupId>
             <artifactId>jsp-api</artifactId>


[struts] 06/10: WW-5334 Remove unnecessary Mockito exclusion

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 110ef71eb76df4ceb7152c5558a921a8949025be
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 21:55:02 2023 +1000

    WW-5334 Remove unnecessary Mockito exclusion
---
 pom.xml | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/pom.xml b/pom.xml
index fb2759965..76e4d86ee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1000,15 +1000,6 @@
                 <groupId>org.mockito</groupId>
                 <artifactId>mockito-core</artifactId>
                 <version>4.3.1</version>
-                <exclusions>
-                    <!-- The mockito-core artifact and easymock artifact use different versions of objenesis (2.6 vs 3.1).
-                         Excluding the older version here to pass enforcer. When next upgrading mockito-core,
-                         confirm whether this exclusion is still required. -->
-                    <exclusion>
-                        <groupId>org.objenesis</groupId>
-                        <artifactId>objenesis</artifactId>
-                    </exclusion>
-                </exclusions>
                 <scope>test</scope>
             </dependency>
 


[struts] 02/10: WW-5334 Plugins don't need to include core as compile scope

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit a650f3bfceb8ddadf399b27e634e32c761353c80
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 21:45:04 2023 +1000

    WW-5334 Plugins don't need to include core as compile scope
---
 plugins/pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/pom.xml b/plugins/pom.xml
index 6376d4a45..8b3f57865 100644
--- a/plugins/pom.xml
+++ b/plugins/pom.xml
@@ -66,6 +66,7 @@
         <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-core</artifactId>
+            <scope>provided</scope>
         </dependency>
 
         <!-- Test dependencies -->


[struts] 10/10: WW-5334 Add struts2-junit-plugin as test scope to struts2-velocity-plugin

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 61856cf59c419852efa019b07808140461863f96
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 22:18:36 2023 +1000

    WW-5334 Add struts2-junit-plugin as test scope to struts2-velocity-plugin
---
 plugins/velocity/pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/plugins/velocity/pom.xml b/plugins/velocity/pom.xml
index e31c4eba9..a3ec0ac3a 100644
--- a/plugins/velocity/pom.xml
+++ b/plugins/velocity/pom.xml
@@ -55,6 +55,12 @@
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>org.apache.struts</groupId>
+            <artifactId>struts2-junit-plugin</artifactId>
+            <scope>test</scope>
+        </dependency>
+
     </dependencies>
 
     <properties>


[struts] 01/10: WW-5334 Correct struts2-xslt-plugin pom

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit c4521370059ef46b578b57f72332092eae751613
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 21:43:49 2023 +1000

    WW-5334 Correct struts2-xslt-plugin pom
---
 plugins/xslt/pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/xslt/pom.xml b/plugins/xslt/pom.xml
index 61771261b..32a8d1b48 100644
--- a/plugins/xslt/pom.xml
+++ b/plugins/xslt/pom.xml
@@ -35,6 +35,7 @@
         <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-junit-plugin</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>javax.servlet.jsp</groupId>


[struts] 04/10: WW-5334 Fix Portlet plugin dependency scopes

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 9992e39b42bc9faca0a8edaeef927d7f47133fa4
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 21:47:37 2023 +1000

    WW-5334 Fix Portlet plugin dependency scopes
---
 plugins/portlet/pom.xml | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/plugins/portlet/pom.xml b/plugins/portlet/pom.xml
index 3d15c4e69..025daa863 100644
--- a/plugins/portlet/pom.xml
+++ b/plugins/portlet/pom.xml
@@ -32,13 +32,10 @@
     <name>DEPRECATED: Struts 2 Portlet Plugin - since 6.0.0</name>
 
     <dependencies>
-        <!-- junit and related JARs are needed for 'compile'! -->
-
         <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-portlet-mocks-plugin</artifactId>
             <scope>test</scope>
-            <optional>true</optional>
         </dependency>
 
         <dependency>
@@ -46,12 +43,6 @@
             <artifactId>struts2-velocity-plugin</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <optional>true</optional>
-        </dependency>
-
         <!-- spring-core is required for javadoc of jdk8 -->
         <!-- It is indirectly referenced by struts2-junit-plugin. -->
         <dependency>


[struts] 05/10: WW-5334 Fix Junit module README

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 7da2def4783e4c73f7ed9bc3b4a2f120fd2f2e27
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 21:49:24 2023 +1000

    WW-5334 Fix Junit module README
---
 plugins/junit/README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/junit/README.md b/plugins/junit/README.md
index d0d0e5464..e3c40d248 100644
--- a/plugins/junit/README.md
+++ b/plugins/junit/README.md
@@ -1,4 +1,4 @@
-# Struts 2 JFreeChart plugin
+# Struts 2 JUnit plugin
 The JUnit Plugin supports testing actions within a Struts invocation, meaning that a full request is simulated, 
 and the output of the action can be tested.
 You will find more details in [documentation](https://struts.apache.org/plugins/junit/).


[struts] 09/10: WW-5334 Extract javax.servlet-api into parent POM

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 05cfe51d5f5054303bc58fd0e32276c6595ae21f
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 22:17:11 2023 +1000

    WW-5334 Extract javax.servlet-api into parent POM
---
 plugins/convention/pom.xml    | 5 -----
 plugins/embeddedjsp/pom.xml   | 5 -----
 plugins/jasperreports/pom.xml | 5 -----
 plugins/jfreechart/pom.xml    | 5 -----
 plugins/json/pom.xml          | 6 ------
 plugins/junit/pom.xml         | 5 -----
 plugins/pom.xml               | 5 +++++
 plugins/portlet-tiles/pom.xml | 5 -----
 plugins/portlet/pom.xml       | 6 ------
 plugins/testng/pom.xml        | 6 ------
 plugins/tiles/pom.xml         | 5 -----
 plugins/velocity/pom.xml      | 5 -----
 plugins/xslt/pom.xml          | 5 -----
 13 files changed, 5 insertions(+), 63 deletions(-)

diff --git a/plugins/convention/pom.xml b/plugins/convention/pom.xml
index 6919a2125..44934ab22 100644
--- a/plugins/convention/pom.xml
+++ b/plugins/convention/pom.xml
@@ -68,11 +68,6 @@
             <artifactId>easymock</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
     </dependencies>
 
     <properties>
diff --git a/plugins/embeddedjsp/pom.xml b/plugins/embeddedjsp/pom.xml
index c6175355f..eb6fbf8c0 100644
--- a/plugins/embeddedjsp/pom.xml
+++ b/plugins/embeddedjsp/pom.xml
@@ -65,11 +65,6 @@
             <artifactId>request</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>test</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.tomcat</groupId>
             <artifactId>tomcat-juli</artifactId>
diff --git a/plugins/jasperreports/pom.xml b/plugins/jasperreports/pom.xml
index 65f736c14..a466dcf6a 100644
--- a/plugins/jasperreports/pom.xml
+++ b/plugins/jasperreports/pom.xml
@@ -62,11 +62,6 @@
             <artifactId>struts2-junit-plugin</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>
diff --git a/plugins/jfreechart/pom.xml b/plugins/jfreechart/pom.xml
index 6b76c9ce7..299bcef1e 100644
--- a/plugins/jfreechart/pom.xml
+++ b/plugins/jfreechart/pom.xml
@@ -61,11 +61,6 @@
             <artifactId>struts2-junit-plugin</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
diff --git a/plugins/json/pom.xml b/plugins/json/pom.xml
index ed60c2d3a..cc5194038 100644
--- a/plugins/json/pom.xml
+++ b/plugins/json/pom.xml
@@ -64,12 +64,6 @@
             <artifactId>commons-text</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
-
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
diff --git a/plugins/junit/pom.xml b/plugins/junit/pom.xml
index e72b5bd78..64c770e3d 100644
--- a/plugins/junit/pom.xml
+++ b/plugins/junit/pom.xml
@@ -49,11 +49,6 @@
             <artifactId>struts2-spring-plugin</artifactId>
             <optional>true</optional>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
diff --git a/plugins/pom.xml b/plugins/pom.xml
index b931eeec6..c8f62b838 100644
--- a/plugins/pom.xml
+++ b/plugins/pom.xml
@@ -82,6 +82,11 @@
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>javax.servlet.jsp</groupId>
+            <artifactId>jsp-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
             <artifactId>javax.servlet-api</artifactId>
diff --git a/plugins/portlet-tiles/pom.xml b/plugins/portlet-tiles/pom.xml
index 7caba1442..3c266ea83 100644
--- a/plugins/portlet-tiles/pom.xml
+++ b/plugins/portlet-tiles/pom.xml
@@ -40,11 +40,6 @@
              <groupId>org.apache.struts</groupId>
              <artifactId>struts2-portlet-plugin</artifactId>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>javax.portlet</groupId>
             <artifactId>portlet-api</artifactId>
diff --git a/plugins/portlet/pom.xml b/plugins/portlet/pom.xml
index 64e7066e0..70560063a 100644
--- a/plugins/portlet/pom.xml
+++ b/plugins/portlet/pom.xml
@@ -51,12 +51,6 @@
             <optional>true</optional>
         </dependency>
 
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
-
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>
diff --git a/plugins/testng/pom.xml b/plugins/testng/pom.xml
index 7ca5b0846..79e7ed31f 100644
--- a/plugins/testng/pom.xml
+++ b/plugins/testng/pom.xml
@@ -44,12 +44,6 @@
             <groupId>org.springframework</groupId>
             <artifactId>spring-core</artifactId>
         </dependency>
-
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
     </dependencies>
 
     <properties>
diff --git a/plugins/tiles/pom.xml b/plugins/tiles/pom.xml
index 9716e7198..cbd9f27e7 100644
--- a/plugins/tiles/pom.xml
+++ b/plugins/tiles/pom.xml
@@ -75,11 +75,6 @@
             <artifactId>javax.el</artifactId>
             <optional>true</optional>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.velocity</groupId>
             <artifactId>velocity-engine-core</artifactId>
diff --git a/plugins/velocity/pom.xml b/plugins/velocity/pom.xml
index bcd05f32c..e31c4eba9 100644
--- a/plugins/velocity/pom.xml
+++ b/plugins/velocity/pom.xml
@@ -49,11 +49,6 @@
             <artifactId>velocity-tools-view-jsp</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-        </dependency>
-
         <dependency>
             <groupId>mockobjects</groupId>
             <artifactId>mockobjects-core</artifactId>
diff --git a/plugins/xslt/pom.xml b/plugins/xslt/pom.xml
index 32a8d1b48..12f217789 100644
--- a/plugins/xslt/pom.xml
+++ b/plugins/xslt/pom.xml
@@ -37,11 +37,6 @@
             <artifactId>struts2-junit-plugin</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>


[struts] 03/10: WW-5334 Include Mockito as test dependency for all plugins

Posted by ku...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5334-fix-cyclic
in repository https://gitbox.apache.org/repos/asf/struts.git

commit cfce5b2e0366546121172434a6fbeca9c371185a
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Aug 18 21:45:27 2023 +1000

    WW-5334 Include Mockito as test dependency for all plugins
---
 plugins/pom.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/pom.xml b/plugins/pom.xml
index 8b3f57865..6ee8c4ba0 100644
--- a/plugins/pom.xml
+++ b/plugins/pom.xml
@@ -75,6 +75,11 @@
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-core</artifactId>
+            <scope>test</scope>
+        </dependency>
 
         <dependency>
             <groupId>javax.servlet</groupId>