A customer tried to deploy his customization following the official documentation titled Adding Third Party Libraries to a Module. Some customizations are deployed successfully but several ones failed to deploy with the following errors:
org.osgi.framework.BundleException: Could not resolve module: XXX
Unresolved requirement: Import-Package: XXX.XXX
After that, the customer found this forum post posted by a user who was facing the same issue with dependencies that have other additional dependencies, and the user was able to deploy by doing "Option 4" written in this blog article.