<?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>custom module jar dependency</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=98686101" />
  <subtitle>custom module jar dependency</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=98686101</id>
  <updated>2026-05-31T15:40:00Z</updated>
  <dc:date>2026-05-31T15:40:00Z</dc:date>
  <entry>
    <title>RE: custom module jar dependency</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=98784260" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=98784260</id>
    <updated>2017-11-16T13:48:26Z</updated>
    <published>2017-11-16T13:48:26Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Manikantha Rajamani:&lt;/div&gt;&lt;blockquote&gt;&lt;strong&gt;Include-Resource: @com.liferay.portal.security.sso.LinkedIn.connect.configuration-1.0.0.jar,\&lt;/strong&gt;&lt;br /&gt;@com.liferay.portal.settings.web-1.2.0.jar,\&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;What are you doing?  You don&amp;#39;t need to include OSGi-compatible jars into the module, that actually leads to class loader errors.  Liferay jars especially, those should never be added as a resource.&lt;br /&gt;&lt;br /&gt;If you find yourself including a Liferay jar as a resource, that is a clear flag that you are absolutely doing something wrong.&lt;br /&gt;&lt;br /&gt;You&amp;#39;re building OSGi modules.  Just deploy them as OSGi modules and let the OSGi container sort them out.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2017-11-16T13:48:26Z</dc:date>
  </entry>
  <entry>
    <title>custom module jar dependency</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=98686100" />
    <author>
      <name>Manikantha Rajamani</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=98686100</id>
    <updated>2017-11-15T14:07:50Z</updated>
    <published>2017-11-15T14:07:50Z</published>
    <summary type="html">Hi Team&lt;br /&gt;&lt;br /&gt;I have developed 3 modules  called&lt;strong&gt; linckedIn-connect ,portal-setting-authentication-linkedIn-web,login-authentication-linkedIn-web&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;portal-setting-authentication-linkedIn-web, login-authentication-linkedIn-web&lt;br /&gt; have dependency of  linkedIn-connect&lt;br /&gt;and i have added linkedin-connect dependency in portal-setting-authentication-linkedIn-web, login-authentication-linkedIn-web  like below&lt;br /&gt;&lt;br /&gt;build.gradle&lt;br /&gt;&lt;br /&gt;dependencies {&lt;br /&gt;	compileOnly group: &amp;#34;com.liferay.portal&amp;#34;, name: &amp;#34;com.liferay.portal.kernel&amp;#34;, version: &amp;#34;2.0.0&amp;#34;&lt;br /&gt;	compileOnly group: &amp;#34;com.liferay.portal&amp;#34;, name: &amp;#34;com.liferay.util.taglib&amp;#34;, version: &amp;#34;2.0.0&amp;#34;&lt;br /&gt;	compileOnly group: &amp;#34;javax.portlet&amp;#34;, name: &amp;#34;portlet-api&amp;#34;, version: &amp;#34;2.0&amp;#34;&lt;br /&gt;	compileOnly group: &amp;#34;javax.servlet&amp;#34;, name: &amp;#34;javax.servlet-api&amp;#34;, version: &amp;#34;3.0.1&amp;#34;&lt;br /&gt;	compileOnly group: &amp;#34;jstl&amp;#34;, name: &amp;#34;jstl&amp;#34;, version: &amp;#34;1.2&amp;#34;&lt;br /&gt;	compileOnly group: &amp;#34;org.osgi&amp;#34;, name: &amp;#34;osgi.cmpn&amp;#34;, version: &amp;#34;6.0.0&amp;#34;&lt;br /&gt;	compileOnly group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.petra.lang&amp;#34;, version: &amp;#34;1.0.0&amp;#34;&lt;br /&gt;	&lt;br /&gt;	&lt;strong&gt;compileOnly project(&amp;#34;:modules:LinkedIn-connect&amp;#34;)&lt;/strong&gt;&lt;br /&gt;	compile group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.portal.settings.web&amp;#34;, version: &amp;#34;1.2.0&amp;#34;&lt;br /&gt;	&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt; bnb.bnb file&lt;br /&gt;Bundle-Name: portal settings authentication linkedIn web&lt;br /&gt;Bundle-SymbolicName: portal.settings.authentication.linkedIn.web&lt;br /&gt;Bundle-Version: 1.0.0&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Include-Resource: @com.liferay.portal.security.sso.LinkedIn.connect.configuration-1.0.0.jar,\&lt;/strong&gt;&lt;br /&gt;@com.liferay.portal.settings.web-1.2.0.jar,\&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Liferay-Releng-Module-Group-Title: Portal Settings&lt;br /&gt;Web-ContextPath: /portal-settings-authentication-linkedIn-web&lt;br /&gt;&lt;br /&gt;when i add following code and deploy i&amp;#39;m getting 3 times instance settings in controlpanel&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Is it correct way to add dependency or any other way we need to add for custom module&lt;/strong&gt;&lt;br /&gt;any one know how so solve runtime dependency plz share</summary>
    <dc:creator>Manikantha Rajamani</dc:creator>
    <dc:date>2017-11-15T14:07:50Z</dc:date>
  </entry>
</feed>
