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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • モジュールのビルド中に以下のようなエラーが発生することがあります:
タスク 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