Piotr Karwasz created VFS-859: --------------------------------- Summary: Improper handling of optional JPMS modules Key: VFS-859 URL: https://issues.apache.org/jira/browse/VFS-859 Project: Commons VFS Issue Type: Improvement Affects Versions: 2.10.0 Reporter: Piotr Karwasz
The current automatically generated JPMS module descriptor contains a: {code:java} requires org.apache.httpcomponents.httpcore; {code} directive, without the {{static}} modifier, which causes runtime exceptions if the *optional* {{httpcore}} dependency is not present at runtime: {noformat} Error occurred during initialization of boot layer java.lang.module.FindException: Module org.apache.httpcomponents.httpcore not found, required by org.apache.commons.vfs2 {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)