<?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 DXP portlet module is not deploying with External jar</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111609361" />
  <subtitle>Liferay DXP portlet module is not deploying with External jar</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111609361</id>
  <updated>2026-04-04T13:32:32Z</updated>
  <dc:date>2026-04-04T13:32:32Z</dc:date>
  <entry>
    <title>RE: Liferay DXP portlet module is not deploying with External jar</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112866658" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112866658</id>
    <updated>2019-03-23T07:43:23Z</updated>
    <published>2019-03-23T07:43:23Z</published>
    <summary type="html">I am not sure, what your question is? Can you please explain it in more detail?&lt;br /&gt;&lt;br /&gt;The question of this thread was not about errors when building a module, but when deploying it, since runtime dependencies are missing.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-03-23T07:43:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP portlet module is not deploying with External jar</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112865707" />
    <author>
      <name>Nicholson Jones</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112865707</id>
    <updated>2019-03-23T07:07:39Z</updated>
    <published>2019-03-23T07:07:39Z</published>
    <summary type="html">&lt;blockquote&gt;Kalai Arasan&amp;lt;p&amp;gt;Liferay DXP portlet module is not deploying with External jar&lt;br /&gt;  referred ,&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;I have added the,&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; compile group: &amp;#39;com.jcraft&amp;#39;, name: &amp;#39;jsch&amp;#39;, version: &amp;#39;0.1.54&amp;#39; in&lt;br /&gt;  build.gradle file and it&amp;#39;s building success but when I deploying the&lt;br /&gt;  module it&amp;#39;s showing the below message in console and not deploying.&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;2018-11-20 14:03:11.654 INFO &lt;a href="https://mybkexperience.us/"&gt;&lt;span style="color: #000000"&gt;mybkexperience&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;   [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263]&lt;br /&gt;  Processing dna.hrb.scheduler-1.0.0.jar&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;and I tried &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;by referring the jar in &amp;lt;strong&amp;gt;bnd.bnd&amp;lt;/strong&amp;gt; file like below and&lt;br /&gt;  changed the &amp;lt;strong&amp;gt;compile group&amp;lt;/strong&amp;gt; to&amp;lt;strong&amp;gt; runtime group&lt;br /&gt;  in &amp;lt;/strong&amp;gt;build.gradle, But it&amp;#39;s not showing error while building&lt;br /&gt;  the module,&amp;lt;/p&amp;gt; &lt;br /&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; Include-Resource: @jsch-0.1.54.jar&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;  &amp;lt;span style=&amp;#34;background-color: rgb(255,0,0);&amp;#34;&amp;gt;error: package&lt;br /&gt;    com.jcraft.jsch does not exist&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;I followed the below post as a reference&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;https://community.liferay.com/en/blogs/-/blogs/osgi-module-dependencies&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;could you please tell me if I am missing something. &amp;lt;/p&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I changed the &lt;strong&gt;compile group&lt;/strong&gt; to&lt;strong&gt; runtime group in &lt;/strong&gt;build.gradle, But it&amp;#39;s not showing error while building the module.</summary>
    <dc:creator>Nicholson Jones</dc:creator>
    <dc:date>2019-03-23T07:07:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP portlet module is not deploying with External jar</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111700412" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111700412</id>
    <updated>2018-11-29T16:14:31Z</updated>
    <published>2018-11-29T16:14:31Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Harsh Soni:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;I have try this way it would help you.I have tried liferay dxp
        and liferay 7.1 it's working.&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;compileOnly group: 'com.jcraft', name: 'jsch', version:
        '0.1.54'&lt;br /&gt;  &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;br /&gt;
 I recommend reading &lt;a href="https://community.liferay.com/blogs/-/blogs/gradle-compile-vs-compileonly-vs-compileinclude"&gt;https://community.liferay.com/blogs/-/blogs/gradle-compile-vs-compileonly-vs-compileinclude&lt;/a&gt;
 for an explanation between the difference of all of the compile directives.&lt;br /&gt;
  </summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2018-11-29T16:14:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP portlet module is not deploying with External jar</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111699321" />
    <author>
      <name>Harsh Soni</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111699321</id>
    <updated>2018-11-29T13:54:00Z</updated>
    <published>2018-11-29T13:54:00Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Kalai Arasan:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;Liferay DXP portlet module is not deploying with External jar
        referred ,&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;I have added the,&lt;/p&gt;
      &lt;p&gt; compile group: 'com.jcraft', name: 'jsch', version: '0.1.54'
        in build.gradle file and it's building success but when I
        deploying the module it's showing the below message in console
        and not deploying.&lt;/p&gt;
      &lt;p&gt;2018-11-20 14:03:11.654 INFO
         [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263]
        Processing dna.hrb.scheduler-1.0.0.jar&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;and I tried &lt;/p&gt;
      &lt;p&gt;by referring the jar in &lt;strong&gt;bnd.bnd&lt;/strong&gt; file like
        below and changed the &lt;strong&gt;compile group&lt;/strong&gt; to&lt;strong&gt;
          runtime group in &lt;/strong&gt;build.gradle, But it's not showing
        error while building the module,&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt; Include-Resource: @jsch-0.1.54.jar&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;
        &lt;span style="background-color: rgb(255,0,0);"&gt;error: package
          com.jcraft.jsch does not exist&lt;/span&gt;&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;I followed the below post as a reference&lt;/p&gt;
      &lt;p&gt;https://community.liferay.com/en/blogs/-/blogs/osgi-module-dependencies&lt;/p&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;p&gt;could you please tell me if I am missing something. &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;I have try this way it would help you.I have tried liferay dxp and
  liferay 7.1 it's working.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;compileOnly group: 'com.jcraft', name: 'jsch', version:
  '0.1.54'&lt;br /&gt;  &lt;/p&gt;</summary>
    <dc:creator>Harsh Soni</dc:creator>
    <dc:date>2018-11-29T13:54:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP portlet module is not deploying with External jar</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111658567" />
    <author>
      <name>Kalai Arasan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111658567</id>
    <updated>2018-11-24T13:33:14Z</updated>
    <published>2018-11-24T13:33:14Z</published>
    <summary type="html">Thank you David, I will try like this.</summary>
    <dc:creator>Kalai Arasan</dc:creator>
    <dc:date>2018-11-24T13:33:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP portlet module is not deploying with External jar</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111619644" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111619644</id>
    <updated>2018-11-21T06:31:45Z</updated>
    <published>2018-11-21T06:31:45Z</published>
    <summary type="html">Change your &amp;quot;compile&amp;quot; to &amp;quot;compileInclude&amp;quot; and it
will likely work just fine.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2018-11-21T06:31:45Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP portlet module is not deploying with External jar</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111609360" />
    <author>
      <name>Kalai Arasan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111609360</id>
    <updated>2018-11-20T14:21:47Z</updated>
    <published>2018-11-20T14:21:47Z</published>
    <summary type="html">&lt;p&gt;Liferay DXP portlet module is not deploying with External jar
  referred ,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have added the,&lt;/p&gt;
&lt;p&gt; compile group: 'com.jcraft', name: 'jsch', version: '0.1.54' in
  build.gradle file and it's building success but when I deploying the
  module it's showing the below message in console and not deploying.&lt;/p&gt;
&lt;p&gt;2018-11-20 14:03:11.654 INFO
   [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263]
  Processing dna.hrb.scheduler-1.0.0.jar&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;and I tried &lt;/p&gt;
&lt;p&gt;by referring the jar in &lt;strong&gt;bnd.bnd&lt;/strong&gt; file like below and
  changed the &lt;strong&gt;compile group&lt;/strong&gt; to&lt;strong&gt; runtime group
  in &lt;/strong&gt;build.gradle, But it's not showing error while building
  the module,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; Include-Resource: @jsch-0.1.54.jar&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="background-color: rgb(255,0,0);"&gt;error: package
    com.jcraft.jsch does not exist&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I followed the below post as a reference&lt;/p&gt;
&lt;p&gt;https://community.liferay.com/en/blogs/-/blogs/osgi-module-dependencies&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;could you please tell me if I am missing something. &lt;/p&gt;</summary>
    <dc:creator>Kalai Arasan</dc:creator>
    <dc:date>2018-11-20T14:21:47Z</dc:date>
  </entry>
</feed>
