0

我正在尝试完成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?

构建问题

4

2 回答 2

0

根据要求,将我们的评论组合成一个答案:

“你有没有试过重新安装?” ;)

让它值得一个真正的答案:典型的捆绑安装完全可运行(安装说明是:解压缩,启动 tomcat)并包含您需要的一切 - 特别是在开发环境中。

如果您使用 Liferay IDE 或 EE 等效的 Developer Studio(均基于 eclipse),他们甚至知道如何自己解压缩服务器(如果您正在开发/重新部署 ext 插件,这是必要的)。

很高兴能够提供帮助。

于 2014-01-23T21:18:47.873 回答
0

这个问题反复发生。错误的部署可能会导致 Liferay 删除它自己的 Marketplace portlet*。

我没有每次都重新安装,而是从Liferay 的 Get Marketplace Portlet 页面获取Marketplace Portlet.war,然后使用 Liferay 控制面板部署它。

*:抱歉,我没有确切的重现步骤。

于 2014-11-11T23:11:20.460 回答