我正在努力完成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-master
到portal-6.2.x
正如你可以看到修復的構建路徑,這解決了以上缺失的.jar文件的一半,但仍然缺少要求構建路徑中的人是一樣的,所以他們從回購中缺失或需要建立。我不知道哪個。
那麼,我該如何部署marketplace-portlet?
哪個版本的Liferay和您使用的是哪個應用服務器?您是否使用捆綁軟件(例如預裝在tomcat上的Liferay)或者您是否安裝在自己的應用服務器上?該捆綁軟件通常會安裝市場,所以它應該是一個不存在的問題 - 不需要自己編譯 –
Liferay 6.2和Tomcat的Liferay打包版本。爲了迴應你關於它捆綁的觀點,我刪除了服務器文件夾,從Eclipse中刪除它,提取原始.zip和whalla沒有錯誤消息。它似乎很小,但如果您發佈「重新安裝服務器」的答案,我會接受它。它確實解決了我的問題。這不是通過重新提取服務器解決的第一個問題。 –