legacy-knowledge-base
公開されました Sep. 10, 2025

サービスビルダーが正しいクラスパッケージを生成しない

written-by

Kanchan Bisht

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

問題

  • パッケージパスに "com "と "org "の両方が含まれている場合、サービスビルダーは正しいクラスパッケージを生成しません。
    再現するためのステップ:
    1. package-path com.liferay.orgと複合PKでservice.xmlを作成する。
    2. サービスをビルドする gw buildService
    期待される動作:
    観察された動作:間違ったパッケージのためにコンパイルエラーが表示される。

環境

  • Liferay DXP 7.4

解像度

  • これは既知のリグレッションバグで、修正されcom.liferay.portal.tools.service.builderに含まれています。 バージョン 1.0.478
    現在、もしユーザがこれを使いたいのであれば、 settings.gradleを編集して、以下を追加する必要があります。 classpathグループを追加する:"com.liferay", name: "com.liferay.gradle.plugins.service.builder", version:"1.0.478"さもなければ、ワークスペースの新しいバージョンを待つ必要がある。

追加情報

  • この記事を書いている時点で、ワークスペースの最新バージョンはDeveloper Studio 3.9.8です。
did-this-article-resolve-your-issue

legacy-knowledge-base