Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

GraphQL Client

Avatar

Avatar
Validate 1
Level 2
sreedobe
Level 2

Likes

4 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
sreedobe
Level 2

Likes

4 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
sreedobe
Level 2

18-03-2021

I have graphQL Services at client place and would like to consume the services using GraphQL Client api provided by adobe, as application is an aem application.

 

I tried by including below maven dependency in core/bundle, ui.apps and parent pom files. I am not able to see GraphQL Factory config or bundle downloaded.

 

I tried both below dependencies with / without scope.

 

<dependency>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>graphql-client</artifactId>
<version>1.7.1</version>
<scope>provided</scope>
</dependency>

 


<dependency>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>graphql-client</artifactId>
<version>1.7.1</version>
</dependency>

 

Thanks,

Sree 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 4
bilal_ahmad
Level 4

Likes

66 likes

Total Posts

108 posts

Correct Reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Ignite 1
Establish
View profile

Avatar
Springboard
Level 4
bilal_ahmad
Level 4

Likes

66 likes

Total Posts

108 posts

Correct Reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Ignite 1
Establish
View profile
bilal_ahmad
Level 4

19-03-2021

Hey @sreedobe add the dependencies in your budle pom.xml and parent pom.xml. Also add this in your bundle pom.xml in the configuration:

<configuration>
<bnd><![CDATA[
-conditional package: com.adobe.commerce.cif
..
..
]]></bnd>
</configuration>

  

I hope this works out for you!

Thanks,

Bilal.

Answers (1)

Answers (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

510 likes

Total Posts

645 posts

Correct Reply

213 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

510 likes

Total Posts

645 posts

Correct Reply

213 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

19-03-2021

Hi @sreedobe,

Adding dependency in POM files will help resolve at AEM maven project level. When the same is deployed in an AEM instance, added dependencies should be available as OSGI bundle. 

In order to do this, in addition to adding desired dependency in parent pom.xml and in core/pom.xml file,

  • If you are using maven-bundle-plugin to build your core module, use below lines in <instructions>
    • <Embed-Dependency>*;inline=true</Embed-Dependency>
      <Embed-Transitive>true</Embed-Transitive>
  • If you are using bnd-maven-plugin to build your core module, use below within <bnd><![CDATA[ section
    • -conditionalpackage : com.adobe.commerce.cif  (desired dependency's groupId and -condiionalpackage without space)