mina-sshd icon indicating copy to clipboard operation
mina-sshd copied to clipboard

pom: Add compatibility for JDK14

Open TrackerSB opened this issue 4 years ago • 2 comments

In JDK14 the automatic module name resolution seems not to be sufficient. Specifying the automatic module name explicitly fixes the problem.

TrackerSB avatar Oct 23 '20 07:10 TrackerSB

Could you please as part of this fix also move the java.nio.file.spi.FileSystemProvider from the sshd-core module to the sshd-common module where the implementation of this provider is located, since in the modular application the following exception will be thrown:

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\V-F\.m2\repository\org\apache\sshd\sshd-core\2.4.0\sshd-core-2.4.0.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class org.apache.sshd.common.file.root.RootedFileSystemProvider not in module

V-F avatar Feb 01 '21 07:02 V-F

Could you please as part of this fix also move the java.nio.file.spi.FileSystemProvider from the sshd-core module to the sshd-common module where the implementation of this provider is located, since in the modular application the following exception will be thrown:

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\V-F\.m2\repository\org\apache\sshd\sshd-core\2.4.0\sshd-core-2.4.0.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class org.apache.sshd.common.file.root.RootedFileSystemProvider not in module

Done - see https://github.com/apache/mina-sshd/commit/23773e3832219294852579475834c1536c883303

lgoldstein avatar Feb 05 '21 08:02 lgoldstein