【问题标题】:hi i use liferay 7.3.0 when deploy service-api and service-service this error嗨,我在部署 service-api 和 service-service 时使用 liferay 7.3.0 这个错误
【发布时间】:2020-09-06 07:34:06
【问题描述】:
2020-09-02 19:15:51.972 ERROR [fileinstall-C:/Users/h.mohammadi/IdeaProjects/first-Liferay/bundles/osgi/modules][DirectoryWatcher:1112] Unable to start bundle: file:/C:/Users/h.mohammadi/IdeaProjects/first-Liferay/bundles/osgi/modules/slider.api.jar
org.osgi.framework.BundleException: Could not resolve module: slider.api [2409]_  Unresolved requirement: Import-Package: com.liferay.portal.kernel.model; version="[4.1.0,5.0.0)"_ [Sanitized]
    at org.eclipse.osgi.container.Module.start(Module.java:444)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
    at com.liferay.portal.file.install.internal.DirectoryWatcher._startBundle(DirectoryWatcher.java:1095)
    at com.liferay.portal.file.install.internal.DirectoryWatcher._startBundles(DirectoryWatcher.java:1128)
    at com.liferay.portal.file.install.internal.DirectoryWatcher._process(DirectoryWatcher.java:990)
    at com.liferay.portal.file.install.internal.DirectoryWatcher.run(DirectoryWatcher.java:302)

【问题讨论】:

  • 请通过一些步骤来编辑您的问题以重现,例如最好是minimal reproducible example。只是错误消息并不是一个好问题,而且还有很多要猜测的地方。有趣的细节:你是如何建造的?毕业?行家?这些构建文件看起来如何?检查How to Ask

标签: java liferay


【解决方案1】:

尝试将此行添加到bnd.bnd 文件中

Import-Package: *; version="0";resolution:=optional

【讨论】:

    猜你喜欢
    • 2018-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-30
    • 1970-01-01
    • 2017-04-16
    • 2018-10-05
    • 2017-01-14
    相关资源
    最近更新 更多