Issue
- After cloning https://github.com/liferay/liferay-blade-samples.git, Windows OS users may run into the following error:
-
Task :apps:service-builder:basic:basic-service:buildService FAILED
Building Foo
Unable to parse package path from src\main\java\com\liferay\blade\basic\service\persistence\impl\FooPersistenceImpl.java
Exception in thread "main" com.liferay.portal.tools.service.builder.ServiceBuilderException: Unable to parse package path from src\main\java\com\liferay\blade\basic\service\persistence\impl\FooPersistenceImpl.java
-
-
Here are the steps to reproduce the error:
-
Open "liferay-blade-sample/liferay-workspace/build.gradle". In the "subprojects" block, add the following:
-
pluginManager.withPlugin('com.liferay.portal.tools.service.builder', {
dependencies {
serviceBuilder 'com.liferay:com.liferay.portal.tools.service.builder:1.0.478!!'
}
}) -
In Powershell, run "./gradlew --console=plain :apps:service-builder:basic:basic-service:buildService".
-
Service Builder Tool 1.0.478 gives "Unable to parse package path from..." Error in Windows OS
-
Environment
- DXP 7.0-7.3
- Service Builder Tool 1.0.478
- Windows OS
Resolution
- There is a verified path issue when using Service Builder Tool 1.0.478 on Windows OS.
- This issue has been addressed and fixed in Service Builder Tool 1.0.481.
- If you are encountering this issue, replace "Service Builder Tool 1.0.478" with "Service Builder Tool 1.0.481" and rerun the build