我正在尝试完成Liferay 中 Hooks 的官方文档。在该页的大约一半处,有一个注释。
Note: If the Liferay server prints the following message to your console,
the Marketplace Portlet and Portal Compatibility Hook must not already be
deployed on your server.
"Plugin example-hook requires marketplace-portlet, portal-compat-hook"
我确实收到了这条消息,所以我尝试按照说明进行操作:
You can fork and clone Liferay’s liferay-plugins project from GitHub, checkout the
respective branch and/or tag, and deploy each plugin. You can install the Plugins
SDK in Liferay IDE and import each plugin and deploy them. Here is information on
each of the plugins:
Marketplace Portlet (marketplace-portlet) - is available at liferay-
plugins/portlets/marketplace-portlet.
Portal Compatibility Hook (portal-compat-hook) - is available at liferay-
plugins/hooks/portal-compat-hook.
这是我能找到的关于设置市场门户网站的尽可能多的信息。
所以我克隆,并将整个 repo 添加为现有的 Eclipse 项目,而不是 liferay 项目。我选中查找嵌套项目的复选框,查找并添加市场 portlet 并点击完成。然后我假设通过更改为来修复构建plugin-master
路径portal-6.2.x
如您所见,这解决了一半以上丢失的 .jars,但仍然丢失的那些声称构建路径是相同的,因此它们从 repo 中丢失,或者需要构建。我不知道是哪个。
那么,如何部署marketplace-portlet?