'Unresolved Requirement' error for a custom module post upgrading DXP 7.4 from U24 to U92

Issue

  • Receiving the 'Unresolved Requirement' error below for a custom module post upgrading DXP 7.4 from u24 to u92:
    ERROR [Framework Event Dispatcher: Equinox Container: a66dab4b-cb78-460e-aa7f-8ea2748a79be][Framework:47] FrameworkEvent ERROR

    com.liferay.portal.kernel.log.LogSanitizerException: org.osgi.framework.BundleException: Could not resolve module: jp.co.cardif.theme.helper.contributor [1725]_ Unresolved requirement: Import-Package: com.liferay.asset.kernel.model; version="[8.0.0,9.0.0)"_ [Sanitized]

    at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi.jar:?]

Environment

  • Liferay DXP 7.4

Resolution

  • First, after upgrading, need to update the module version. Use this tool to identify module version changes between major Liferay DXP releases. Module Version Changes
  • Next, review the pom.xml, and verify the version in the below property:
    <groupId>com.liferay.portal</groupId>
    <artifactId>com.liferay.portal.kernel</artifactId>
    <!-- <version>2.6.0</version> -->
    <version>50.0.1</version>
    <scope>provided</scope>
    </dependency>
    <!-- Liferay -->
  • Update the version and change the above file into the below configuration:
    <dependency>
    <groupId>com.liferay.portal</groupId>
    <artifactId>com.liferay.portal.kernel</artifactId>
    <version>121.0.0</version>
    <scope>provided</scope>
    </dependency>
  • The current update version needs to be updated to 121.0.0 which is causing this issue.

Additional Information

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助