Unable to resolve twilio dependancy issue in aem
- May 3, 2024
- 3 replies
- 2368 views
Hi Everyone,
I have to use twilio message api [https://www.twilio.com/en-us], For that I have added dependancy in core pom file like below to use their apis.
core pom.xml:
<!-- communication web API https://mvnrepository.com/artifact/com.twilio.sdk/twilio -->
<dependency>
<groupId>com.twilio.sdk</groupId>
<artifactId>twilio</artifactId>
<version>10.1.5</version>
</dependency>
Post this, I got below build error:
if I build core module- build is success but getting cannot be resolved issue.

if I build whole project I got below build error:
[ERROR] The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] com.sampleproject:sampleProject.core:1.0.0-SNAPSHOT: Bundle sampleProject.core:1.0.0-SNAPSHOT is importing pack
age(s) [com.twilio.type, com.twilio, com.twilio.rest.api.v2010.account, com.twilio.base] in start level 20 but no bundle is exporting these for that start level. (com.sampleproject:sampleProject.all:1.0.0-SNAPSHOT)
Due to above error I have embeded this in all pom.xml and I got another build error like below:
all pom.xml
<embedded>
<groupId>com.twilio.sdk</groupId>
<artifactId>twilio</artifactId>
<type>jar</type>
<target>/apps/sampleProject-packages/application/install</target>
</embedded>
Post this, I got below build error:
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.4.10:project-analyse (aem-analyser) on project sampleProject.all: A fatal er
ror occurred while analysing the features, see error cause:: Unable to get bundle symbolic name from artifact com.twilio.sdk:twilio:10.1.5 -> [Help 1]
FYI - It looke like not a bundle, it's jar file. So I need your help to solve this dependancy issue, Thanks in advance.
