Foren
Liferay DXP adding external jars to module
Shruti Pandey, geändert vor 6 Jahren.
Liferay DXP adding external jars to module
New Member Beiträge: 6 Beitrittsdatum: 14.06.17 Neueste Beiträge
Hi,
I am using Liferay DXP.
I have created a service wrapper module in workspace.
I need to include some external jars for my code. Went through David's blog. I have opted option 4 mentioned here. But when I am trying to import containing packages they are still unavailable.
The console showed "Downloading......" for the jars. but still unable to import.
Can anyone point on what I am missing over here.
Thanks in advance.
I am using Liferay DXP.
I have created a service wrapper module in workspace.
I need to include some external jars for my code. Went through David's blog. I have opted option 4 mentioned here. But when I am trying to import containing packages they are still unavailable.
build.gradle
dependencies {
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0"
compile group: "com.liferay", name:"com.liferay.journal.api", version:"2.1.0"
compile group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.4'
compile group: 'org.twitter4j', name: 'twitter4j-async', version: '4.0.4'
compile group: 'org.twitter4j', name: 'twitter4j-stream', version: '4.0.4'
compile group: 'org.twitter4j', name: 'twitter4j-media-support', version: '4.0.4'
runtime group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.4'
runtime group: 'org.twitter4j', name: 'twitter4j-async', version: '4.0.4'
runtime group: 'org.twitter4j', name: 'twitter4j-stream', version: '4.0.4'
runtime group: 'org.twitter4j', name: 'twitter4j-media-support', version: '4.0.4'
}
bnd file
Bundle-Name: Testing
Bundle-SymbolicName: com.test
Bundle-Version: 1.0.0
Include-Resource:\
@twitter4j-core-4.0.4.jar,\
@twitter4j-async-4.0.4.jar,\
@twitter4j-stream-4.0.4,\
@twitter4j-media-support-4.0.4
The console showed "Downloading......" for the jars. but still unable to import.
Can anyone point on what I am missing over here.
Thanks in advance.
Manish Jha, geändert vor 6 Jahren.
RE: Liferay DXP adding external jars to module (Antwort)
Junior Member Beiträge: 50 Beitrittsdatum: 07.02.13 Neueste Beiträge
did you try gradle refresh ?
Shruti Pandey, geändert vor 6 Jahren.
RE: Liferay DXP adding external jars to module
New Member Beiträge: 6 Beitrittsdatum: 14.06.17 Neueste Beiträge
Hi,
Yes got it working after gradle refresh
Yes got it working after gradle refresh