Fórum
Issue with bundling external dependencies in Liferay Dxp bundle
krishna mohan mathakala, modificado 6 Anos atrás.
Issue with bundling external dependencies in Liferay Dxp bundle
Junior Member Postagens: 68 Data de Entrada: 08/09/12 Postagens Recentes
Hi for adding the third party libraries, I followed the article Adding third part libraries to a module.
Now the generated bundle has a lib directory with all the dependencies configured in the build.gradle.
When I deploy the bundle the status of the bundle is installed. When I try to start the bundle I am getting the below error
This is not even a transitive dependency for any of my dependency jars that I configured in the build.gradle
Can you please help me to resolve this.
Now the generated bundle has a lib directory with all the dependencies configured in the build.gradle.
When I deploy the bundle the status of the bundle is installed. When I try to start the bundle I am getting the below error
org.osgi.framework.BundleException: Could not resolve module: com.test..api [564]
Unresolved requirement: Import-Package: com.ibm.wsdl.extensions.soap
This is not even a transitive dependency for any of my dependency jars that I configured in the build.gradle
Can you please help me to resolve this.
David H Nebinger, modificado 6 Anos atrás.
RE: Issue with bundling external dependencies in Liferay Dxp bundle
Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recenteskrishna mohan mathakala:
This is not even a transitive dependency for any of my dependency jars that I configured in the build.gradle
Um, yes it is.
Dependencies don't manifest themselves. You have incurred some dependency and one of it's dependencies (or it's dependencies or their dependencies) require the IBM soap/wsdl library.
Come meet me at Devcon 2017 or 2017 LSNA!
krishna mohan mathakala, modificado 6 Anos atrás.
RE: Issue with bundling external dependencies in Liferay Dxp bundle
Junior Member Postagens: 68 Data de Entrada: 08/09/12 Postagens Recentes
Hi David,
Thanks for the reply. I am using the compileInclude in my build.gradle while configuring the dependencies. So while building the jar the gradle plugin (com.liferay.plugin) is taking care of including all the dependencies(including transitive dependencies) in to the bundle. When I add the IBM soap/wsdl library to my build.gradle, it is asking for some other dependency.
I am using WebLogic 12c with mysql Database.
Thanks for the reply. I am using the compileInclude in my build.gradle while configuring the dependencies. So while building the jar the gradle plugin (com.liferay.plugin) is taking care of including all the dependencies(including transitive dependencies) in to the bundle. When I add the IBM soap/wsdl library to my build.gradle, it is asking for some other dependency.
I am using WebLogic 12c with mysql Database.