[ https://issues.apache.org/jira/browse/WW-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848696#comment-16848696 ] Kiran Kumar commented on WW-5032: --------------------------------- Here is the sample o/p from command line. Microsoft Windows [Version 10.0.17763.503] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\kvaranasi\Desktop\Struts2Example>mvn clean test [INFO] Scanning for projects... [INFO] [INFO] ------------------< com.mkyong.common:Struts2Example >------------------ [INFO] Building Struts2Example Maven Webapp com.mkyong.common [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Struts2Example --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Struts2Example --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ Struts2Example --- [WARNING] ******************************************************************************************************************** [WARNING] * Required filename-based automodules detected. Please don't publish this project to a public artifact repository! * [WARNING] ******************************************************************************************************************** [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] Compiling 4 source files to C:\Users\kvaranasi\Desktop\Struts2Example\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] the unnamed module reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] module struts2.core reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] module struts2.junit.plugin reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] module tomcat.servlet.api reads package org.apache.struts2 from both struts2.junit.plugin and struts2.core [ERROR] module junit reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] /C:/Users/kvaranasi/Desktop/Struts2Example/src/main/java/module-info.java:[1,1] module Struts2Example reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [INFO] 6 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.664 s [INFO] Finished at: 2019-05-27T13:31:47+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project Struts2Example: Compilation failure: Compilation failure: [ERROR] the unnamed module reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] module struts2.core reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] module struts2.junit.plugin reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] module tomcat.servlet.api reads package org.apache.struts2 from both struts2.junit.plugin and struts2.core [ERROR] module junit reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] /C:/Users/kvaranasi/Desktop/Struts2Example/src/main/java/module-info.java:[1,1] module Struts2Example reads package org.apache.struts2 from both struts2.core and struts2.junit.plugin [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > Struts 2 Junit Plugin is not working with Zulu JDK11 > ---------------------------------------------------- > > Key: WW-5032 > URL: https://issues.apache.org/jira/browse/WW-5032 > Project: Struts 2 > Issue Type: Dependency > Components: Core, Plugin - JUnit > Affects Versions: 2.5.20 > Environment: Zulu JDK 11.0 > Struts 2.5.20 > Struts 2 Junit Plugin V 2.5.20 > Junit 4.12 > Reporter: Kiran Kumar > Priority: Blocker > Attachments: Error.PNG > > > Unable to execute Junit test cases on Struts 2 using JDK 11.0 platform.Please find the screens shots of the issues we are facing. Would really appreciate your help with this as we are stuck and unable to move forward and losing time for a key deliverable.[^Junit_JDK 11.0_Struts 2 _Issue.docx] -- This message was sent by Atlassian JIRA (v7.6.3#76005)