Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay DXP portlet module is not deploying with External jar
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.
Kalai 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'
Harsh 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.
Kalai 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.
The question of this thread was not about errors when building a module, but when deploying it, since runtime dependencies are missing.
Powered by Liferay™