<?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>How to add local jar files in the project?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111159154" />
  <subtitle>How to add local jar files in the project?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111159154</id>
  <updated>2026-04-06T15:29:52Z</updated>
  <dc:date>2026-04-06T15:29:52Z</dc:date>
  <entry>
    <title>RE: How to add local jar files in the project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111171031" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111171031</id>
    <updated>2018-10-08T20:39:20Z</updated>
    <published>2018-10-08T20:39:20Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;star boy:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;I need to add some jar files to it which&amp;nbsp; i have added into the
        module by creating a folder inside.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Is there a reason you've manually added them to a folder rather than
  referencing them as regular Maven dependencies?&lt;/p&gt;
&lt;p&gt;Having them in a folder requires you to, at a minimum, do something
  similar to &lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.5-ga6/modules/apps/static/portal-osgi-web/portal-osgi-web-wab-extender/build.gradle"&gt;com.liferay.portal.osgi.web.wab.extender&lt;/a&gt;,
  where you declare the dependency as a &lt;code&gt;fileTree&lt;/code&gt; dependency
  at compile time, and then you have to make sure the .jar is deployed
  to the OSGi container.&lt;/p&gt;
&lt;p&gt;If those dependency .jar files aren't OSGi modules that declare
  exported packages, you'll also need an added step to embed the .jar
  into your generated module (probably with steps similar to &lt;a href="https://community.liferay.com/forums/-/message_boards/view_message/111157451"&gt;this
    earlier post&lt;/a&gt;), which would have been handled for you
  automatically if they were &lt;code&gt;compileInclude&lt;/code&gt; dependencies
  from a public/private Maven repository.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-10-08T20:39:20Z</dc:date>
  </entry>
  <entry>
    <title>How to add local jar files in the project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111159153" />
    <author>
      <name>star boy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111159153</id>
    <updated>2018-10-07T08:36:12Z</updated>
    <published>2018-10-07T08:36:12Z</published>
    <summary type="html">&lt;p&gt;i am using  mvc-portlet module for my project in liferay 7.&lt;/p&gt;
&lt;p&gt;I need to add some jar files to it which  i have added into the
  module by creating a folder inside.&lt;/p&gt;
&lt;p&gt;i have made the required additions in the gradle.properties
  file.Still it is not getting deployed.when i tried to start it in the 
  gogo shell it is giveing import jar error&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;it showing Below Error : &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;org.osgi.framework.BundleException: Could not resolve module:
  screener [687]&lt;br /&gt;  Unresolved requirement: Import-Package: chemaxon.formats&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>star boy</dc:creator>
    <dc:date>2018-10-07T08:36:12Z</dc:date>
  </entry>
</feed>
