Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-4110

"Adding Third Party Libraries to a Module" should mention how to handle "optional" transitive depencencies

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 7.0.x
    • Component/s: Dev Tools
    • Labels:
      None

      Description

      Background

      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

      Root issue
      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.

      Request for Improvement
      Add a note that mentions this point into Adding Third Party Libraries to a Module.

        Attachments

        1. external-lib-web.zip
          9 kB
        2. MANIFEST.MF
          2 kB
        3. third-party-libs.zip
          5 kB
        4. transitive-deps-in-bundle-classpath.png
          transitive-deps-in-bundle-classpath.png
          120 kB
        5. transitive-deps-in-lib.png
          transitive-deps-in-lib.png
          70 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.0.x