<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay 7.2 No value has been specified for property 'apiDir'</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120812726" />
  <subtitle>Liferay 7.2 No value has been specified for property 'apiDir'</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120812726</id>
  <updated>2026-06-12T01:39:12Z</updated>
  <dc:date>2026-06-12T01:39:12Z</dc:date>
  <entry>
    <title>RE: RE: Liferay 7.2 No value has been specified for property 'apiDir'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121323854" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121323854</id>
    <updated>2022-01-10T06:46:34Z</updated>
    <published>2022-01-10T06:46:34Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2022-01-10T06:46:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 No value has been specified for property 'apiDir'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121311665" />
    <author>
      <name>Ansuman Mohanty</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121311665</id>
    <updated>2021-12-30T21:49:40Z</updated>
    <published>2021-12-30T21:49:40Z</published>
    <summary type="html">&lt;p&gt;I am hitting it. Is there any prescribed solution to this problem?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Ansuman&lt;/p&gt;</summary>
    <dc:creator>Ansuman Mohanty</dc:creator>
    <dc:date>2021-12-30T21:49:40Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7.2 No value has been specified for property 'apiDir'</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120812725" />
    <author>
      <name>Benmohamed Charfeddine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120812725</id>
    <updated>2021-06-02T15:04:52Z</updated>
    <published>2021-05-30T01:12:58Z</published>
    <summary type="html">&lt;p&gt;I created a module project using servicebuild template
  (gradebook-api, gradebook-service),  but suddenly after add an export
  package in api below&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;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&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; i have a problem in the BuildService gradle task that's says :&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;Some problems were found with the configuration of task
    ':modules:gradebook:gradebook-api:buildService' (type
    'BuildServiceTask').&lt;br /&gt;&amp;gt; File
    'C:\Liferay\ide-workspace\training-workspace\modules\gradebook\gradebook-api\service.xml'
    specified for property 'inputFile' does not exist.&lt;br /&gt;&amp;gt; No
    value has been specified for property 'apiDir'.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;And this is a how I add the api module as dependency in service.&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;dependencies {

	compileOnly group: &amp;quot;com.liferay&amp;quot;, name: &amp;quot;com.liferay.petra.io&amp;quot;
	compileOnly group: &amp;quot;com.liferay&amp;quot;, name: &amp;quot;com.liferay.petra.lang&amp;quot;
	compileOnly group: &amp;quot;com.liferay&amp;quot;, name: &amp;quot;com.liferay.petra.string&amp;quot;
	compileOnly group: &amp;quot;com.liferay&amp;quot;, name: &amp;quot;com.liferay.portal.aop.api&amp;quot;
	compileOnly group: &amp;quot;com.liferay.portal&amp;quot;, name: &amp;quot;com.liferay.portal.kernel&amp;quot;
	compileOnly group: &amp;quot;org.osgi&amp;quot;, name: &amp;quot;org.osgi.annotation.versioning&amp;quot;
	compileOnly group: &amp;quot;org.osgi&amp;quot;, name: &amp;quot;org.osgi.core&amp;quot;
	compileOnly group: &amp;quot;org.osgi&amp;quot;, name: &amp;quot;org.osgi.service.component.annotations&amp;quot;
	compileOnly group: &amp;quot;javax.portlet&amp;quot;, name: &amp;quot;portlet-api&amp;quot;
	compileOnly group: &amp;quot;javax.servlet&amp;quot;, name: &amp;quot;javax.servlet-api&amp;quot;
	compile project(&amp;quot;:modules:gradebook:gradebook-api&amp;quot;)

}

buildService {
	apiDir = &amp;quot;../gradebook-api/src/main/java&amp;quot;
}

group = &amp;quot;com.liferay.training.gradebook&amp;quot;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</summary>
    <dc:creator>Benmohamed Charfeddine</dc:creator>
    <dc:date>2021-05-30T01:12:58Z</dc:date>
  </entry>
</feed>
