legacy-knowledge-base
公開されました Jul. 2, 2025

LDSでLiferayモジュールプロジェクトフラグメントを作成できません

written-by

Amit Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay モジュール プロジェクト フラグメントを作成しようとすると、次のように有効な Liferay ポータル ランタイムを設定するよう求められます。
Please set a valid liferay portal runtime, you can initBundle or modify 'liferay.workspace.home.dir' to make it point to an existing runtime.

before_cofig.png

環境

  • Liferay DXP 7. x
  • Liferay Developer Studio バージョン: 3.9.4.202108090632-ga5

解決策

  • Gradle の Liferay インスタンスの適切なパスで「liferay.workspace.home.dir」を追加します。 以下に示すプロパティ:
liferay.workspace.home.dir= /home/../../liferay-dxp-7.2.10.3-sp3
  • ここで、 Windows --> Preferences --> Server --> Runtime Environment --> Addに移動して、サーバーを追加します。
  • Windowsタブからサーバーを追加して投稿します。 次に、「利用可能なサーバーがありません。 [サーバー] タブの下の左下隅にある [新しいサーバーを作成するには] オプションをクリックし、[新しいサーバー] ポップアップを使用して新しいサーバーを追加します。

new_server.png

  • 新しいサーバーを追加した後、上記の手順で必要なランタイムが追加されるため、Liferay モジュール プロジェクト フラグメントを作成できます。

after_cofig.png

did-this-article-resolve-your-issue

legacy-knowledge-base