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

Yurii Polianytsia commented on ARTEMIS-3939:
--------------------------------------------

Minimal example of the project with such errors is in the attached archive 
Test3.zip. If you want to create it from scratch you need to:
1. Create a simple Java SE project with .classpath file and without maven.
2. Download apache-artemis-2.24.0-bin.zip and unpack lib folder into your 
project. 
3. Add the apache artemis libs into your classpath as a modules.
{noformat}
<classpathentry kind="lib" path="lib/activemq-artemis-native-1.0.2.jar"> 
  <attributes>   
    <attribute name="module" value="true"/> 
  </attributes> 
</classpathentry>{noformat}
4. Create a simple test app with some apache artemis classes imported:
{noformat}
import org.apache.activemq.artemis.api.core.SimpleString;
import org.apache.activemq.artemis.core.config.Configuration;
{noformat}
5. Create module-info.java with all required modules:
{noformat}
module org.test {
    requires java.base;
    requires java.desktop;
    requires java.datatransfer;
    requires java.instrument;
    requires java.logging;
    requires java.management;
    requires java.management.rmi;
    requires java.naming;
    requires java.rmi;
    requires java.sql;
    requires java.xml;
    requires java.xml.bind;
    requires artemis.commons;
    requires artemis.core.client;
    requires artemis.jms.client;
    requires artemis.jms.server;
    requires artemis.server;
    requires com.google.common;
    requires org.apache.commons.lang3;
    requires org.apache.commons.text;
    requires qpid.jms.client;
}
{noformat}
6. And you should get these errors on the import lines in your test code:

!ArtemisModulesErr.jpg|width=1039,height=804!

> 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