[ 
https://issues.apache.org/jira/browse/WW-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16850794#comment-16850794
 ] 

Kiran Kumar commented on WW-5032:
---------------------------------

Hi Yasser,

       Please try this 
[https://github.com/kkvaranasi88/Test/tree/master/Struts2Example].

IDE : Eclipse IDE for Enterprise Java Developers.
Version: 2019-03 (4.11.0)
Build id: 20190314-1200
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 11.0.2

Sample build o/p:  

 

[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] Deleting C:\Users\kvaranasi\Desktop\Struts2Example\target
[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.junit.plugin and struts2.core
[ERROR] module struts2.core reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module spring.core reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module org.apache.logging.log4j reads package org.apache.struts2 from 
both struts2.junit.plugin and struts2.core
[ERROR] module tomcat.servlet.api reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module struts2.junit.plugin reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module junit reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] 
/C:/Users/kvaranasi/Desktop/Struts2Example/src/main/java/module-info.java:[1,1] 
module Struts2Example reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[INFO] 8 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.578 s
[INFO] Finished at: 2019-05-29T17:36:18+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.junit.plugin and struts2.core
[ERROR] module struts2.core reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module spring.core reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module org.apache.logging.log4j reads package org.apache.struts2 from 
both struts2.junit.plugin and struts2.core
[ERROR] module tomcat.servlet.api reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module struts2.junit.plugin reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] module junit reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[ERROR] 
/C:/Users/kvaranasi/Desktop/Struts2Example/src/main/java/module-info.java:[1,1] 
module Struts2Example reads package org.apache.struts2 from both 
struts2.junit.plugin and struts2.core
[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

 

Regards,

Krian

> 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
>             Fix For: 2.6
>
>         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)

Reply via email to