[
https://issues.apache.org/jira/browse/MCOMPILER-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17212607#comment-17212607
]
Gili commented on MCOMPILER-436:
--------------------------------
The hardest problem to solve is the split packages. The most straightforward
way would be to assign each artifact a unique package (e.g. move all packages
of sshd-core under org.apache.sshd.core, all packages of sshd-common under
org.apache.sshd.common and so on) but this will break backwards compatibility.
Another approach would be to merge any artifacts that split a package. This
would retain the same package names but the artifacts would change (this would
be a lesser breakage of backwards compatibility but might reduce the modularity
of the library).
There are many possibilities. Once you decide which way you want to proceed, we
can move forward.
> Cannot compile code that depends on on Apache Mina SSH due to JPMS error
> ------------------------------------------------------------------------
>
> Key: MCOMPILER-436
> URL: https://issues.apache.org/jira/browse/MCOMPILER-436
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Affects Versions: 3.8.1
> Reporter: Gili
> Priority: Major
> Attachments: extract-module-name.zip
>
>
> 1. Extract Testcase
> 2. Run "mvn clean install"
> 3. Build fails with:
> [WARNING] Can't extract module name from sshd-core-2.5.1.jar: Provider class
> org.apache.sshd.common.file.root.RootedFileSystemProvider not in module
> [ERROR] module not found: sshd.core
> Expected behavior: The plugin should be able to extract the module name given
> that sshd-core depends on sshd-commons which contains the aforementioned
> provider and automatic modules can access classes outside their module.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)