0

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.

これは、マーケットプレイス ポートレットの設定に関して私が見つけた限りの情報です。

そこで、クローンを作成し、liferay プロジェクトではなく、既存の Eclipse プロジェクトとしてレポ全体を追加します。ネストされたプロジェクトを探すためのチェックボックスをオンにし、マーケットプレイス ポートレットを見つけて追加し、[完了] をクリックします。plugin-master次に、に変更してビルドパスを修正すると仮定しますportal-6.2.x

ご覧のとおり、これで欠落している .jar の半分以上が解決されますが、まだ欠落しているものはビルド パスが同じであると主張しているため、リポジトリから欠落しているか、ビルドする必要があります。どちらかわかりません。

では、marketplace-portlet をデプロイするにはどうすればよいでしょうか。

ビルドの問題

4

2 に答える 2

0

この問題は繰り返し発生しました。不適切なデプロイが原因で、Liferay が独自の Marketplace ポートレットを削除する可能性があります*。

毎回再インストールするのではなく、 Liferay の Get Marketplace Portlet ページから Marketplace Portlet.war を取得し、Liferay コントロール パネルを使用して展開しました。

*: 再現するための正確な手順はありません。申し訳ありません。

于 2014-11-11T23:11:20.460 に答える