2014-01-22 100 views
0

我正在努力完成The Official Documentation for Hooks in Liferay。在該頁面的一半左右,有一張紙條。如何部署marketplace-portlet或導入marketplace-portlet依賴關係?

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. 

這是我能找到的關於建立市場的portlet儘可能多的信息。

因此,我克隆,並將整個回購作爲現有的Eclipse項目,而不是liferay項目。我選中複選框查找嵌套項目,查找並添加市場portlet並完成。那麼,我想通過改變plugin-masterportal-6.2.x

正如你可以看到修復的構建路徑,這解決了以上缺失的.jar文件的一半,但仍然缺少要求構建路徑中的人是一樣的,所以他們從回購中缺失或需要建立。我不知道哪個。

那麼,我該如何部署marketplace-portlet?

build issues

+0

哪個版本的Liferay和您使用的是哪個應用服務器?您是否使用捆綁軟件(例如預裝在tomcat上的Liferay)或者您是否安裝在自己的應用服務器上?該捆綁軟件通常會安裝市場,所以它應該是一個不存在的問題 - 不需要自己編譯 –

+0

Liferay 6.2和Tomcat的Liferay打包版本。爲了迴應你關於它捆綁的觀點,我刪除了服務器文件夾,從Eclipse中刪除它,提取原始.zip和whalla沒有錯誤消息。它似乎很小,但如果您發佈「重新安裝服務器」的答案,我會接受它。它確實解決了我的問題。這不是通過重新提取服務器解決的第一個問題。 –

回答

0

按照要求,我們的看法組合成一個答案:

「您是否嘗試過重新安裝新的?」 ;)

爲了讓它值得一個真正的答案:典型的軟件包安裝完全可運行(安裝說明是:unzip,啓動tomcat)幷包含您需要的一切 - 特別是在開發環境中。

如果您使用Liferay IDE或EE等效的Developer Studio(均基於eclipse),他們甚至知道如何自己解壓縮服務器(如果您正在開發/重新部署ext插件,則需要這樣做)。

很高興能夠提供幫助。

0

這個問題反覆發生。有關錯誤部署的情況可能會導致Liferay刪除自己的Marketplace portlet *。

我沒有每次重新安裝,而是從Liferay's Get Marketplace Portlet page中抓取Marketplace Portlet.war,並使用Liferay控制面板進行部署。

*:我沒有確切的步驟來重現,對不起。