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

Service Builder Tool 1.0.478で "Unable to parse package path from... "と表示されました。 Windowsのエラー

written-by

Michael Tran

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

問題

  • https://github.com/liferay/liferay-blade-samples.git をクローンした後、Windows OSユーザーは以下のエラーに遭遇する可能性がある:
    • Task :apps:service-builder:basic:basic-service:buildService FAILED
      Building Foo
      Unable to parse package path from srcmainjavajavacomliferaybladebasicservice\persistenceimplFooPersistenceImpl.java
      Exception in thread "main" com.liferay.portal.tools.service.builder.ServiceBuilderException:Unable to parse package path from srcmainjavacheliferay\basic\service\persistence\impl\FooPersistenceImpl.java
  • 以下は、このエラーを再現するための手順である:

    1. liferay-blade-sample/liferay-workspace/build.gradle" を開きます。 サブプロジェクト "ブロックに以下を追加する:

    2. pluginManager.withPlugin('com.liferay.portal.tools.service.builder', {

      dependencies {

      serviceBuilder 'com.liferay:com.liferay.portal.tools.service.builder:1.0.478!!'

      }

      })
    3. Powershellで、"./gradlew --console=plain :apps:service-builder:basic:basic-service:buildService" を実行します。

    4. Service Builder Tool 1.0.478で "Unable to parse package path from... "と表示されました。 Windows OSのエラー

環境

  • DXP 7.0-7.3
  • サービス・ビルダー・ツール 1.0.478
  • ウィンドウズOS

解像度

  • Windows OS上でサービスビルダツール1.0.478を使用する場合、検証されたパスの問題があります。
  • この問題は、Service Builder Tool 1.0.481で修正されました。
    • この問題が発生した場合は、"Service Builder Tool 1.0.478 "を "Service Builder Tool 1.0.481 "に置き換え、ビルドを再実行してください。

did-this-article-resolve-your-issue

legacy-knowledge-base