Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-102598

Package version mismatch between base bundle and third-party library

Details

    Description

      When compiling against the thirdparty (managed through this bom: release.dxp.bom.third.party-7.2.10.fp1-1.pom) library commons-beanutils:commons-beanutils:1.9.2, discovered the portal does not export the correct version number for the dependency.

      This prevents the portlet from starting up correct and fails with:

       Unresolved requirement: Import-Package: Unresolved requirement: Import-Package: org.apache.commons.beanutils; version="[1.9.0,2.0.0)"_ [Sanitized]
      

      The export package can be seen here:
      https://github.com/liferay/liferay-portal/blob/7.2.x/modules/core/portal-bootstrap/system.packages.extra.bnd#L181-L186

      We should correct this so that build using our bom files will not fail on deployment.

      Workaround is to add the following to you bnd:

      Import-Package: org.apache.commons.beanutils.*;version="[1.8.2,2.0.0)", \
          *
      

      Thanks raymond.auge for your help diagnosing the issue.

      Attachments

        Activity

          People

            summer.zhang Summer Zhang
            shanon.mathai Shanon Mathai
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 50 weeks ago

              Packages

                Version Package
                7.2.10 DXP FP3
                7.2.1 CE GA2
                7.2.X
                7.3.10 DXP GA1
                Master