Message Boards
Liferay DXP portlet module is not deploying with External jar
Liferay DXP portlet module is not deploying with External jar
Regular Member Posts: 127 Join Date: 1/2/13 Recent PostsLiferay DXP portlet module is not deploying with External jar referred ,
I have added the,
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.
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
and I tried
by referring the jar in bnd.bnd file like below and changed the compile group to runtime group in build.gradle, But it's not showing error while building the module,
Include-Resource: @jsch-0.1.54.jar
error: package com.jcraft.jsch does not exist
I followed the below post as a reference
https://community.liferay.com/en/blogs/-/blogs/osgi-module-dependencies
could you please tell me if I am missing something.
RE: Liferay DXP portlet module is not deploying with External jar
Liferay Legend Posts: 14916 Join Date: 9/2/06 Recent PostsRE: Liferay DXP portlet module is not deploying with External jar
Regular Member Posts: 127 Join Date: 1/2/13 Recent PostsRE: Liferay DXP portlet module is not deploying with External jar
New Member Posts: 8 Join Date: 5/8/17 Recent PostsKalai Arasan:Liferay DXP portlet module is not deploying with External jar referred ,
I have added the,
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.
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
and I tried
by referring the jar in bnd.bnd file like below and changed the compile group to runtime group in build.gradle, But it's not showing error while building the module,
Include-Resource: @jsch-0.1.54.jar
error: package com.jcraft.jsch does not exist
I followed the below post as a reference
https://community.liferay.com/en/blogs/-/blogs/osgi-module-dependencies
could you please tell me if I am missing something.
I have try this way it would help you.I have tried liferay dxp and liferay 7.1 it's working.
compileOnly group: 'com.jcraft', name: 'jsch', version:
'0.1.54'
RE: Liferay DXP portlet module is not deploying with External jar
Liferay Legend Posts: 14916 Join Date: 9/2/06 Recent PostsHarsh Soni:I have try this way it would help you.I have tried liferay dxp and liferay 7.1 it's working.
compileOnly group: 'com.jcraft', name: 'jsch', version: '0.1.54'
I recommend reading https://community.liferay.com/blogs/-/blogs/gradle-compile-vs-compileonly-vs-compileinclude for an explanation between the difference of all of the compile directives.
RE: Liferay DXP portlet module is not deploying with External jar
New Member Post: 1 Join Date: 2/11/19 Recent PostsKalai Arasan<p>Liferay DXP portlet module is not deploying with External jar
referred ,</p>
<p> </p>
<p>I have added the,</p>
<p> 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.</p>
<p>2018-11-20 14:03:11.654 INFO mybkexperience
[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263]
Processing dna.hrb.scheduler-1.0.0.jar</p>
<p> </p>
<p>and I tried </p>
<p>by referring the jar in <strong>bnd.bnd</strong> file like below and
changed the <strong>compile group</strong> to<strong> runtime group
in </strong>build.gradle, But it's not showing error while building
the module,</p>
<p> </p>
<p> Include-Resource: @jsch-0.1.54.jar</p>
<p> </p>
<p>
<span style="background-color: rgb(255,0,0);">error: package
com.jcraft.jsch does not exist</span></p>
<p> </p>
<p> </p>
<p>I followed the below post as a reference</p>
<p>https://community.liferay.com/en/blogs/-/blogs/osgi-module-dependencies</p>
<p> </p>
<p>could you please tell me if I am missing something. </p>
I changed the compile group to runtime group in build.gradle, But it's not showing error while building the module.
RE: Liferay DXP portlet module is not deploying with External jar
Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent PostsThe question of this thread was not about errors when building a module, but when deploying it, since runtime dependencies are missing.