如何部署marketplace-portlet或导入marketplace-portlet依赖项?

时间:2014-01-22 23:36:34

标签: eclipse liferay liferay-6 liferay-ide

我正在尝试完成The Official Documentation for Hooks in Liferay。在该页面的大约一半处,有一张纸条。

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.

这是关于设置marketplace-portlet的尽可能多的信息。

所以我克隆,并将整个repo添加为现有的Eclipse项目,而不是liferay项目。我选中复选框以查找嵌套项目,查找并添加市场portlet并点击完成。然后我假设通过将plugin-master更改为portal-6.2.x

来修复构建路径

正如您所看到的,这解决了超过一半的缺失.jars,但仍然缺失的那些声称构建路径是相同的,因此它们在repo中丢失,或者需要构建。我不知道哪个。

那么,我该如何部署marketplace-portlet?

build issues

2 个答案:

答案 0 :(得分:0)

根据要求,将我们的评论结合到一个答案中:

“您是否尝试过再次安装新设备?” ;)

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

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

很高兴能够提供帮助。

答案 1 :(得分:0)

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

我不是每次都重新安装,而是从Liferay's Get Marketplace Portlet page抓取Marketplace Portlet.war并使用Liferay控制面板进行部署。

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

相关问题