Foros de discusión

Error when deploying OSGi bundle to LR7

thumbnail
Clint Wilde, modificado hace 7 años.

Error when deploying OSGi bundle to LR7

Junior Member Mensajes: 39 Fecha de incorporación: 5/03/13 Mensajes recientes
Hello,

I am getting an error when I deploy a custom OSGi module which deals with documents in the document library.

Unresolved requirement: Import-Package: com.liferay.portlet.documentlibrary.model

I looked at this page, but there is no mention of this package.
https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/finding-liferay-api-modules

I also searched the maven repo and could not find it.

Could it be possible that this package no longer exists in Liferay7? If so, why would it be trying to reference it?

Can someone tell me which jar file this is in? Any other assistance would be appreciated.

Thanks,
Clint
thumbnail
David H Nebinger, modificado hace 7 años.

RE: Error when deploying OSGi bundle to LR7

Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
Your new package path is com.liferay.document.library.kernel.model.

Whenever you see "com.liferay.portlet" you know this is referring to a legacy portal-service import. Instead you need to look at the new portal-kernel packages to find the replacements.