AEM-6.5 Google Oauth Client Jetty | Community
Skip to main content
TarunKumar
Community Advisor
Community Advisor
July 27, 2021
Solved

AEM-6.5 Google Oauth Client Jetty

  • July 27, 2021
  • 4 replies
  • 2633 views

Hi All,
I am trying to include dependency of com.google.oauth-client in my maven pom file. But when I deploy the bundle on felix console, get error message like below.

I tried to embed the dependency also in my pom but no luck. Any one who can help me on this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

Hi @tarunkumar,

Please find my comments in this thread for similar issue.  (Dependency not resolving in the context of OSGi/ Apache Felix console)

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/problem-integrating-google-cloud-platform-computer-vision-with/qaq-p/417182

 

4 replies

Adobe Employee
July 27, 2021

@tarunkumar

please include this dependency. to work in maven

<!-- https://mvnrepository.com/artifact/com.google.oauth-client/google-oauth-client-jetty -->
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client-jetty</artifactId>
<version>1.31.5</version>
</dependency>

 

Adobe Employee
July 27, 2021
TarunKumar
Community Advisor
Community Advisor
July 27, 2021

@ashishg1547773

I have included the dependency in the same way as you have suggested. But problem is that my dependency is not getting resolved at apache felix console. 

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
July 27, 2021

Hi @tarunkumar,

Please find my comments in this thread for similar issue.  (Dependency not resolving in the context of OSGi/ Apache Felix console)

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/problem-integrating-google-cloud-platform-computer-vision-with/qaq-p/417182

 

Vijayalakshmi_S
Level 10
July 28, 2021

@tarunkumar,

Not sure if any of the transitive dependencies of google-oauth-client-jetty is in need of com.sun.net.httpserver, Can you try adding the same in Import-Package entry with resolution:=optional

Also, In the Export-Package entry, remove the version information and cross check if you have mentioned all the Java Package names (related to the dependency) that you are using in the actual code/functionality.

 

If you still face any issues, share the code snippet that is making use of google-oauth-client-jetty. I will reproduce it in my local and update.