この記事では、新しい修正パックがインストールされた後にプラグインを更新するためのいくつかの可能性のある解決策について説明します。 具体的には、あるプラグインのライブラリがポータルと同時にパッチされていないことが判明しました。 また、特定のファイルを変更するカスタマイズされたプラグインは、パッチツールのインストールコマンドと衝突する可能性があることがわかっています。
コマンド patching-tool list-collisions
を実行します。 このコマンドは、インストールされたパッチファイルとプラグインのバージョンの違い(衝突)をすべてリストアップします。 現在は hooks と ext のみがサポートされており、テーマの衝突は検出されません。
Patching Tool 2.0.9の時点では、 patching-tool list-collisions
はフラグメントバンドル内のJSPファイルの衝突のみをリストアップしています。 残念ながら、この機能は後にPatching Tool 2.0.11で修正されたバグを導入しました。 解像度については、 パッチングツール2.0.11 の記事を参照してください。
決議
フィックスパックが適用された後にプラグインをアップデートする場合、いくつかの解決策が考えられます。
- コマンドを実行した後
patching-tool.bat|sh install
フィックスパックとホットフィックスをインストールするには、コマンドを実行してください。patching-tool.bat|sh update-plugins
. - パッチツールではプラグインを自動的に更新することができるので、管理者は
update-plugins
コマンドを常に実行する必要がありません。 プロパティauto.update.plugins=true
をファイルdefault.properties
に追加します(自動発見が適用される場合)。
注意: Liferay DXPで起動すると、コンソールにこのメッセージが表示されます。
Deploy time dependency JARs will be updated on the DXP startup.
詳細については、 追加情報 の項を参照してください。 - パッチツールを使用したくない管理者は、ホットデプロイ機能を使用してプラグインを再デプロイするか、
war
ファイルをインストールしてください。
追加情報
プラグインの更新と 自動検出
機能の使用については、以下のドキュメントを参照してください。
CONFIGURATION In case "auto-discovery" is not applicable in your environment or you would like to use different configurations, you can add a configuration manually. Note: [O] indicates an optional property Create a text file with ".properties" extension in the Patching Tool's directory and add the following properties: patching.mode: "binary" or "source" mode can be used war.path: The path to the Liferay war file (original or unpacked depending on your app. server's deploying methodolgy) global.lib.path: The path to the application server's global lib directory (where portal-kernel.jar [portal-service.jar in Liferay 6] lives) [O]auto.update.plugins: Set to true to execute "update-plugins" command with "install" automatically [O]plugins.path: Specify the location where the plugins are located that will be used during the automatic plugin detection [O]patches.folder: Specify the location where you'll copy your patches. By default, this is ./patches. source.path: Specify the location of your Liferay source tree. This property is only valid if your patching.mode is source. liferay.home: Specify the location where by default the data, osgi, and tools folders reside.
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン