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

Yurii Polianytsia edited comment on ARTEMIS-3939 at 8/15/22 10:39 PM:
----------------------------------------------------------------------

This is the test project I've created to highlight the problem I faced while 
refactoring another big project to use the modular system.

I think most IDEs support the import from Eclipse project. I can try to create 
test project in different IDE if you need just let me know which IDE should it 
be.

Tested the same project after importing it in the IntelliJ Idea and got similar 
errors:
{noformat}
java: the unnamed module reads package org.apache.activemq.artemis.utils from 
both artemis.core.client and artemis.commons
java: the unnamed module reads package org.apache.activemq.artemis.uri from 
both artemis.core.client and artemis.jms.client
java: the unnamed module reads package org.apache.activemq.artemis.core.server 
from both artemis.core.client and artemis.commons
{noformat}

I think the root of the problem is that several Artemis jar files contains the 
same package and when they are added to the project as an automatic modules it 
violates the Java Platform Module System (JPMS) constraints: it is not allowed 
to use the same package in more than one module.


was (Author: JIRAUSER294424):
This is the test project I've created to highlight the problem I faced while 
refactoring another big project to use the modular system.

I think most IDEs support the import from Eclipse project. I can try to create 
test project in different IDE if you need just let me know which IDE should it 
be.

Tested the same project after importing it in the IntelliJ Idea and got similar 
errors:
{noformat}
java: the unnamed module reads package org.apache.activemq.artemis.utils from 
both artemis.core.client and artemis.commons
java: the unnamed module reads package org.apache.activemq.artemis.uri from 
both artemis.core.client and artemis.jms.client
java: the unnamed module reads package org.apache.activemq.artemis.core.server 
from both artemis.core.client and artemis.commons
{noformat}

I think the root of the problem is that several Artemis jar files contains the 
same package and when those are added to the project as an automatic modules it 
violates the Java Platform Module System (JPMS) constraints: it is not allowed 
to use the same package in more than one module.

> Modular dependency conflict between artemis.core.client and artemis.commons 
> and/or artemis.server
> -------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3939
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3939
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.24.0
>         Environment: Adopt OpenJDK 11.0.10.9
> Test Eclipse project attached.
>            Reporter: Yurii Polianytsia
>            Priority: Major
>         Attachments: ArtemisModulesErr.jpg, Test3.zip
>
>
> Errors appear around the project when artemis-core-client-2.24.0.jar is in 
> module path:
> {noformat}
> The package org.apache.activemq.artemis.api.core is accessible from more than 
> one module: artemis.commons, artemis.core.client{noformat}
> {noformat}
> The package org.apache.activemq.artemis.core.settings.impl is accessible from 
> more than one module: artemis.core.client, artemis.server{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to