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

「不明なプロパティ 'ポータル' を取得できませんでした」というエラーのため、war-core-ext を作成できません

written-by

Katlyn Lee

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

問題

  • war-core-ext テンプレートに基づいて新しいモジュール プロジェクトをビルドすると、次のエラーが原因でビルドが失敗します。
    What went wrong:
    A problem occurred evaluating project ':ext:gwext'.
    > Could not get unknown property 'portal' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.

Environment

  • Liferay Workspace バージョン 3.4.10 以下

解決策

  • settings.gradle を開き、「com.liferay.gradle.plugins.workspace」バージョンを 3.4.11 に更新します。
    classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "3.4.11")
    ワークスペースのバージョンを 3.4.11 以降に更新すると、war-core-ext モジュールが正常に作成されるはずです。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base