Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

com.akamai.edgegrid.signer,version=[4.0,5) -- Cannot be resolved

Avatar

Level 4

Hi adobe community team,
I am encountering the following error when trying to use akmai to logoc in current project:
com.akamai.edgegrid.signer,version=[4.0,5) -- Cannot be resolved
com.akamai.edgegrid.signer.apachehttpclient,version=[4.0,5) -- Cannot be resolved

here the core pom.xml changes
<dependency>
<groupId>com.akamai.edgegrid</groupId>
<artifactId>edgegrid-signer-apache-http-client</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>com.akamai.edgegrid</groupId>
<artifactId>edgegrid-signer-core</artifactId>
<version>4.0.1</version>
</dependency>


please provides you comment on the issue and provide your thoughts?

Sai1278_0-1744629212778.png

 

#

2 Replies

Avatar

Community Advisor

Hi @Sai1278 

 

Make sure to add under <export-package> part of the POM. So

  1. Add maven dependency 
    <dependency>
        <groupId>com.akamai.edgegrid</groupId>
        <artifactId>edgegrid-signer-core</artifactId>
        <version>6.0.2</version>
    </dependency>​
  2. Embed dependency and import package 
    <Embed-Transitive>true</Embed-Transitive>
    <Embed-Dependency>com.akamai.edgegrid;scope=compile|runtime</Embed-Dependency>
    <Import-Package>com.akamai.edgegrid.signer.*,javax.inject*;version=0.0.0,*;</Import-Package>​
  3. Export the packages 
    <Export-Package>com.akamai.edgegrid.signer.*, org.codehaus.stax2.*</Export-Package>​

Now the exact packages might differ. To do more reading how this works refer to documentation:

https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

https://techinnovia.com/package-import-and-export/

 

I too ran into a different issue which I documented in my article - https://medium.com/@bsaravanaprakash/how-to-fix-bundle-is-importing-packages-xxx-in-start-level-20-b...

Avatar

Level 4

Hi @sarav_prakash 

I followed the suggestions you provided earlier but unfortunately. I’m still encountering the same error.

Has anyone made any recent custom Akamai changes in your project?
For your reference, I'm using AEM version 6.5 with SP21.

Would appreciate any further insights or assistance.

Thanks,
Sai