Issue: Dependency Resolution for OKTA in Core bundle | Community
Skip to main content
March 10, 2022

Issue: Dependency Resolution for OKTA in Core bundle

  • March 10, 2022
  • 1 reply
  • 1562 views

Hello Experts,

 

We are trying to include below dependency in the core package 

<dependency>
   <groupId>com.okta.jwt</groupId>
   <artifactId>okta-jwt-verifier</artifactId>
   <version>${okta-jwt.version}</version>
</dependency>

<dependency>
  <groupId>com.okta.jwt</groupId>
  <artifactId>okta-jwt-verifier-impl</artifactId>
  <version>${okta-jwt.version}</version>
  <scope>runtime</scope>
</dependency>

(version is 0.5.1)

We are seeing below dependency resolution error when the bundle is installed (not activated because of the dependency issue)

 

 

We are using maven bnd plugin and all the other dependencies are resolved without any issue but this. Could you please share your experience if you have encountered this issue before and resolved. Appreciate you time 

 

Okta documentation :

https://developer.okta.com/docs/guides/validate-access-tokens/java/main/ 

 

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

1 reply

Ravi_Pampana
Community Advisor
Community Advisor
March 11, 2022

Hi,

 

Did you check whether the jar is downloaded under .m2 repository folder? If it is not downloaded you can try downloading the jar manually and add to .m2 repository

 

You can check below link for similar issue

 

https://github.com/okta/okta-jwt-verifier-java/issues/43

March 11, 2022

@ravi_pampana The jar files are downloaded under .m2 folder. Apparently there was no resolution provided by OKTA team at https://github.com/okta/okta-jwt-verifier-java/issues/43

 

Using AEM Archetype 23

DEBAL_DAS
March 11, 2022

Could you convert these jar files into OSGi bundle as suggested and upload into web console to fix this dependency issue [give a try] -

https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-17475.html?lang=en [Convert jar into an OSGi bundle].

 

But you have to define Export packages precisely and these export java packages are getting used in your implementation [

  • Export-Package is a list of packages contained in the jar that you would like to make available to other bundles running in the OSGi Container.]