Message Boards
Liferay 7.2 No value has been specified for property 'apiDir'
Liferay 7.2 No value has been specified for property 'apiDir'
New Member Post: 1 Join Date: 5/30/21 Recent PostsI created a module project using servicebuild template (gradebook-api, gradebook-service), but suddenly after add an export package in api below
Bundle-Name: gradebook-api
Bundle-SymbolicName: com.liferay.training.gradebook.api
Bundle-Version: 1.0.0
Export-Package: \
com.liferay.training.gradebook.exception,\
com.liferay.training.gradebook.model,\
com.liferay.training.gradebook.service,\
com.liferay.training.gradebook.service.persistence,\
com.liferay.training.gradebook.validator
-check: EXPORTS
-includeresource: META-INF/service.xml=../gradebook-service/service.xml
i have a problem in the BuildService gradle task that's says :
Some problems were found with the configuration of task ':modules:gradebook:gradebook-api:buildService' (type 'BuildServiceTask').
> File 'C:\Liferay\ide-workspace\training-workspace\modules\gradebook\gradebook-api\service.xml' specified for property 'inputFile' does not exist.
> No value has been specified for property 'apiDir'.
And this is a how I add the api module as dependency in service.
dependencies {
compileOnly group: "com.liferay", name: "com.liferay.petra.io"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang"
compileOnly group: "com.liferay", name: "com.liferay.petra.string"
compileOnly group: "com.liferay", name: "com.liferay.portal.aop.api"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
compileOnly group: "javax.portlet", name: "portlet-api"
compileOnly group: "javax.servlet", name: "javax.servlet-api"
compile project(":modules:gradebook:gradebook-api")
}
buildService {
apiDir = "../gradebook-api/src/main/java"
}
group = "com.liferay.training.gradebook"
Thanks.
RE: Liferay 7.2 No value has been specified for property 'apiDir'
New Member Posts: 2 Join Date: 12/24/21 Recent PostsI am hitting it. Is there any prescribed solution to this problem?
Thanks.
Ansuman
RE: RE: Liferay 7.2 No value has been specified for property 'apiDir'
Liferay Master Posts: 591 Join Date: 8/8/14 Recent PostsHi ,
As Service Builder consists of two parts Api and Impl, you can try running gradle buildService on Impl only, not on Api or direct service builder folder.