From issues-return-33319-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Mon May 27 08:03:02 2019 Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 15A7A19766 for ; Mon, 27 May 2019 08:03:02 +0000 (UTC) Received: (qmail 20130 invoked by uid 500); 27 May 2019 08:03:01 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 20109 invoked by uid 500); 27 May 2019 08:03:01 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 20094 invoked by uid 99); 27 May 2019 08:03:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2019 08:03:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 583EDE039B for ; Mon, 27 May 2019 08:03:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1AC4C20FEB for ; Mon, 27 May 2019 08:03:00 +0000 (UTC) Date: Mon, 27 May 2019 08:03:00 +0000 (UTC) From: "Kiran Kumar (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-5032) Struts 2 Junit Plugin is not working with Zulu JDK11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)