legacy-knowledge-base
公開されました Jun. 30, 2025

モジュールをビルドできません:com.liferay.portal:release.dxp.api のエラーが見つかりません。

written-by

Kartik Singh

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

問題

  • モジュールのビルド中に以下のようなエラーが発生することがあります:
タスク modules: test-search-results-limit:compileJava FAILED

失敗:

何が問題だったのか:
タスク ':modules:test-search-results-limit:compileJava' の実行に失敗しました。
> modules:test-search-results-limit:compileclasspath'設定のすべてのファイルを解決できませんでした。
> Could not find com.liferay.portal:release.dxp.api:.
Required by:
project:modules:test-search-results-limit

環境

  • Liferay DXP 7.3以上
  • LDS

解像度

  • 開発者によると"com.liferay.portal:release.dxp.api"が見つからないとのことです。このエラーは、開発環境でCommunity Editionを使用している場合にも発生します。この依存性 "com.liferay.portal:release.dxp.api" はEnterprise Editionにのみ含まれています。 したがって、 、ユーザーは開発環境にCommunity Editionを使用しているかどうかを確認する必要がある。
    • また、コミュニティ版でない場合、DXPの代わりにPortalを使っている可能性もある。
  • 回避策はこちら。「build.gradle」で「release.dxp.api」を「compileOnly」依存として使用する必要がある。 例えば
    compileOnlyグループ:"com.liferay.portal", name: "release.dxp.api", version:「使用しているDxpのバージョンを入力してください。
  • ユーザーは製品のバージョンも指定し、"liferay-workspace "ルートフォルダの'gradle.properties'で指定できます: liferay.workspace.product=Dxpのバージョン。

追加情報

  • com.liferay.portal:release.dxp.apiは、あらかじめ組み込まれた機能を提供し、コード品質を促進することで、Liferay DXPアプリケーションの開発プロセスを簡素化し、合理化します。
did-this-article-resolve-your-issue

legacy-knowledge-base